forked from cryptonotefoundation/cryptonote
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transaction fees per byte for extra data (#122)
* Show tx extra size in bytes in explorer (Tx extra is a vector or uint8_t which is already one byte so we can just use this vector's size) * Introduce fee per byte for transaction extra (exceeding the free limit of 100 bytes which is enough for a basic transaction). Unlike per kB fee of Monero for the whole transaction, this covers only transaction's extra field which can be used to store arbitrary additional data. And storing external data in blockchain has to be paid for. * Calculate basic reward separately from the calculation of final block reward and possible penalty * A little clarification on tail reward calc. with reference to the whitepaper * Align min fee calculation with whitepaper pt.1: - replace avg daily reward with basic current reward (excluding penalty and fees) - clarify that our target fee is 0.25, although it's limited by max 0.1 finally, it must have been supposed to be 0.025?? ¯\_(ツ)_/¯ * Cap the size of tx_extra in coinbase tx * Correct few grammar errors in error messages in prevalidate_miner_transaction function * Schedule fork for unmixables together with a fee per byte for tx extra on height 500000, also remove no longer needed conditions for old mixin forks * Put all update heights together, unify names, also hopefully improve min fee and other tx validation components
- Loading branch information
Showing
12 changed files
with
174 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.