3

Is the max transaction speed for a PoA private network the same as the main network? About 20 transactions a second?? If it is faster, would that mean the Rinkeby network is more scalable than the main network?

5

Rinkeby is maxed out for its given block parameters - the transaction capacity depends on

  1. the gas limit of each block, and
  2. how fast blocks are issued on the network To improve transaction capacity you need more gas per second - either by increasing 1. or decreasing 2.

See here

Block gas limits are the maximum amount of gas allowed in a block to determine how many transactions can fit into a block. For example, let’s say we have 5 transactions where each transaction has a gas limit of 10, 20, 30, 40, and 50. If the block gas limit is 100, then the first four transactions can fit in the block.

I'm running a private PoA chain with a block gas limit of 4,700,000 running on 5 second block intervals and we can support 44 transactions per second at 21,000 gas per transaction - if we wanted we could definitely push that number higher through increasing the block gas limit or forcing all nodes to set lower transaction gas prices.

The Rinkeby network has a current gas limit of around 7,000,000 per block and roughly 15 second block intervals, which equates to 22 transactions per second at the same 21,000 gas price per transaction as in my example above. To scale up the capacity of Rinkeby the block gas limit or issuance rate would need to improve (more gas or less time).

As to whether Rinkeby is more scalable than the mainnet, you are now into the Proof of Work (PoW) vs. Proof of Authority (PoA) argument. PoA is faster but far less decentralised - you need to be 'on the list' to become a block sealer whereas in theory anybody can start mining on the PoW mainnet. While a PoA network could be scaled (and consume far less energy than an equivalent-sized PoW chain due to the lack of competitive miners all burning through GPUs trying to process the same transactions), the resulting structure of sealers would have to all know each other well enough to have voted each other in, resulting in a far more centralised chain.

  • When increasing the TPS, what is the difference between increasing the block gas limit compared to lowering the transaction gas prices? Is it better to decrease the block time (to 1 sec?) or increase the block gas limit? – Nyxynyx Jul 15 '18 at 18:05
  • That depends on the nature of your network and your transactions - a higher gas limit also increases smart contract function capacity which might be of interest if your network will involve complex data manipulation (for example). On the other hand if you're only dealing with simple transactions between a small number of nodes with good connectivity then lower block times could be used. In either case you need to ensure new blocks propagate throughout the network in time for each sealer node to be up to date by the time it releases the next block or you'll end up with nodes falling behind. – TC8 Jul 17 '18 at 7:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.