-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the way how to pay about >1024 transaction. (2x) #100
Conversation
pay for every extrablock,not every bytes in default extrablock=1024 bytes. txsize =1025~2048 bytes, pay 1 block txsize =2049~3072 bytes, pay 2 block
@lightszero could we accept these tests here first? #101 Then we update the tests on this branch to see how the new prices could possibly fit (and discuss them). |
Accepted and merged, those tests are great, @igormcoelho. |
@lightszero, what are the advantages of this? Are you afraid of any attack? |
@lightszero I added your proposed option as "standard" (VerifySizeLimits2) and kept old one too (VerifySizeLimits1). Now we can discuss and create more tests for your proposal. |
@shargon could you fix the indent here for us? poor editor here hahaha |
This policy is for 2x ,use kb as fee unit can avoid the utxo loop calculation problem of the previous byte unit policy. |
I think block calculation is a good idea. But since old formula has been around for a while , we should propose another obe which is compatible.. with lower or same prices. |
@lightszero what about charging at every 512 bytes, and use FLOOR instead of CEILING? This reduces the UTXO combinations and effectively keep prices nearly the same or less (never increases, so no wallet will break). |
because they donot like #73 so this is another try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with think that this will be a good change which will simplify the calculus.
Nice job and idea.
@@ -2,8 +2,10 @@ | |||
"PluginConfiguration": { | |||
"MaxTransactionsPerBlock": 500, | |||
"MaxFreeTransactionsPerBlock": 20, | |||
"MaxFreeTransactionSize": 1024, | |||
"FeePerExtraByte": 0.00001, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a little bit strange to still keep FeePerExtraByte
here.
However, the old VerifySizeLimits1
limit was kept.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the impact of merging this? Can it affect our current users negatively?
Is for neo2, i think that we shouldn't change the economic model in neo 2 |
I also think so, @shargon, maybe let's close this one and think about adjusting it for NEO3. |
Hello @neo-project/core, what should we do with this? |
@lightszero, I think we can close this, right? However, fell free to reopen. |
Reopened due to neo-project/neo#1763, if we are going to charge for tx size better to charge this way. |
#neo-project/neo-node#303
pay for every extrablock instread every bytes
in default extrablock=1024 bytes.
feeperextrablock=0.0124.gas
example:
txsize < 1024, pay 0 block,free
txsize =1025 ~ 2048 bytes, pay 1 block 0.01024gas
txsize =2049 ~ 3072 bytes, pay 2 block 0.02048gas
if you want pay by every extrabytes
set extrablock=1 bytes
feeperextrablock =0.0001gas