Conversation
…k.MaxTransactionsPerBlock
|
UT failed. |
Co-authored-by: Erik Zhang <erik@neo.org>
|
Looks good, but how about 128K limit for |
I think that this need more tests, it can be related with the time per block reduction issue. #375 @roman-khimov could you create a different issue for this? |
|
UT Fixed |
|
I can, but to me it doesn't seem to be related to #375, it's just a matter of size match between |
|
For me it's related because both pretend to increase TPS changing the tx per block or the seconds per block, but it's more or less the same. Maybe I am wrong |
I don't. I'm specifically not mentioning TPS here, it's just a matter of match between different components of the system. There is a P2P payload limit, there has to be some, the maximum possible block size should probably match it and the maximum possible block size should be practically reachable with MaxTransactionsPerBlock, that's it.
And #375 is more about latency to me. Of course, there is a natural |
|
What do you think @erikzhang ? public const int MaxContentsPerBlock = 134_000; // (PayloadMaxSize=0x02000000)/(AverageTxSize=250)Or maybe we can remove this variable and compute it according to |
|
|
|
And I want to limit the average block size to 256KB. |
* Policy contract's SetMaxTransactionsPerBlock() doesn't check for Block.MaxTransactionsPerBlock * add more * Clean change * Fix ut * throw exceptions * ArgumentOutOfRangeException * Update src/neo/SmartContract/Native/PolicyContract.cs Co-authored-by: Erik Zhang <erik@neo.org> * Fix UT * Update NativeContractExtensions.cs Co-authored-by: erikzhang <erik@neo.org>
* Policy contract's SetMaxTransactionsPerBlock() doesn't check for Block.MaxTransactionsPerBlock * add more * Clean change * Fix ut * throw exceptions * ArgumentOutOfRangeException * Update src/neo/SmartContract/Native/PolicyContract.cs Co-authored-by: Erik Zhang <erik@neo.org> * Fix UT * Update NativeContractExtensions.cs Co-authored-by: erikzhang <erik@neo.org>
Close #1937