-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adapt the fee for multi recipients transactions #1234
Conversation
868e822
to
267e741
Compare
I don't really agree with the log function for additionnal recipient. For me it looks strange to have more cost for something that takes less resources. Addionnaly, doing this means that sending 2 differents transactions cost less fees than a single transaction with multiple recipients. But for the network, 2 transactions takes way more ressources than a single transaction. It's like if I go to the garage and it cost me 50$ to change a wheel, but 120$ to change 2 wheels while it should be 100$ or less since there is a common setup for 1 or 2 wheels |
In fact, this addition with log, ensure than multi recipients would cost less than many transactions. There is a property testing trying to ensure this assertion. |
Indeed ... It was late, didn't do the right calculation |
267e741
to
ea20fe0
Compare
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.
Question: why do we change the protocol_version?
Because we still need to valid previous transaction's fee with previous algorithm |
ea20fe0
to
a91d2be
Compare
a91d2be
to
ea430a4
Compare
The idea is to ensure a bulk transaction to be more cost efficient than multiple transactions. Indeed, the validation is done one time versus multiple times. The cost is then determined as logarithmic according to the number of recipients
ea430a4
to
6a574ad
Compare
Description
The idea is to ensure a bulk transaction to be more cost efficient than multiple transactions.
Indeed, the validation is done one time versus multiple times.
The cost is then determined as logarithmic according to the number of recipients
Fixes #1041
How Has This Been Tested?
Checklist: