-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add input mr into genesis block (#6601)
Description --- - Added the input merkle root calculation into the genesis block; previously, this was just a default hash, which is incorrect. This will enable adding immediate spending of pre-mine outputs in the genesis block. - Added total kernel offset to the pre-mine output immediate spend ceremony. - Added total kernel offset to the pre-mine information added to the genesis block. - Added chain balance for immediate spend inputs and outputs in `xxxx_genesis_sanity_check()` unit tests. Motivation and Context --- The genesis block did not cater for any immediate spend inputs. How Has This Been Tested? --- - Unit tests expanded & pass. - System-level tests: - Performed a new pre-mine creation ceremony (_esmeralda_). - Performed a pre-mine immediate spend ceremony. - Added the pre-mine and pre-mine immediate spend to the _esmeralda_pre_mine,json_ embedded input file. - Unit test `fn esmeralda_genesis_sanity_check()` passes. What process can a PR reviewer use to test or verify this change? --- Code review. <!-- Checklist --> <!-- 1. Is the title of your PR in the form that would make nice release notes? The title, excluding the conventional commit tag, will be included exactly as is in the CHANGELOG, so please think about it carefully. --> Breaking Changes --- - [ ] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [X] Other - Please specify <!-- Does this include a breaking change? If so, include this line as a footer --> **BREAKING CHANGE:** The genesis block changed; this requires a blockchain restart.
- Loading branch information
1 parent
755bf3e
commit 27ffefa
Showing
12 changed files
with
353 additions
and
99 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
Oops, something went wrong.