Skip to main content
Gas not GAS
Source Link
Roland Kofler
  • 11.7k
  • 3
  • 44
  • 83

For example, lets consider the basic example of issuing a token:

...string public symbol; 
uint8 public decimals; 
uint256 public totalSupply; 
mapping (address => uint256) public balanceOf; 
mapping (address => mapping (address => uint256)) public allowance; ...

Here we are storing in an array the balance for every account. So every time we register a new address, the size of the array increases. As far as I understood the maximun size of data on time creation is limited by the possible GASGas quantity to be used. Currently 3M of GASGas (around 89KB) per block.

This limitation is only when creating a new transaction? Once the contract is on a transaction, Can it still be growing and growing by receiving new data from other transactions without a limit?

For example, lets consider the basic example of issuing a token:

...string public symbol; 
uint8 public decimals; 
uint256 public totalSupply; 
mapping (address => uint256) public balanceOf; 
mapping (address => mapping (address => uint256)) public allowance; ...

Here we are storing in an array the balance for every account. So every time we register a new address, the size of the array increases. As far as I understood the maximun size of data on time creation is limited by the possible GAS quantity to be used. Currently 3M of GAS (around 89KB) per block.

This limitation is only when creating a new transaction? Once the contract is on a transaction, Can it still be growing and growing by receiving new data from other transactions without a limit?

For example, lets consider the basic example of issuing a token:

...string public symbol; 
uint8 public decimals; 
uint256 public totalSupply; 
mapping (address => uint256) public balanceOf; 
mapping (address => mapping (address => uint256)) public allowance; ...

Here we are storing in an array the balance for every account. So every time we register a new address, the size of the array increases. As far as I understood the maximun size of data on time creation is limited by the possible Gas quantity to be used. Currently 3M of Gas (around 89KB) per block.

This limitation is only when creating a new transaction? Once the contract is on a transaction, Can it still be growing and growing by receiving new data from other transactions without a limit?

edited tags
Link
q9f
  • 33k
  • 47
  • 157
  • 399
Source Link

Contract size limit after creation?

For example, lets consider the basic example of issuing a token:

...string public symbol; 
uint8 public decimals; 
uint256 public totalSupply; 
mapping (address => uint256) public balanceOf; 
mapping (address => mapping (address => uint256)) public allowance; ...

Here we are storing in an array the balance for every account. So every time we register a new address, the size of the array increases. As far as I understood the maximun size of data on time creation is limited by the possible GAS quantity to be used. Currently 3M of GAS (around 89KB) per block.

This limitation is only when creating a new transaction? Once the contract is on a transaction, Can it still be growing and growing by receiving new data from other transactions without a limit?