-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a builder for initializing a set of N mintnodes, a set of Y spentbooks, and generating a genesis dbc with amount Z. This functionality is need in tests, mint-repl, and benches. As such, it cannot be in tests, but must be part of sn_dbc library. It is planned that a future commit will refactor all the "mock" items into a mock module, behind a feature flag. * impl builder::mock::GenesisBuilderMock * use GenesisBuilderMock in mint-repl mk_new-mint() * use GenesisBuilderMock in lib::tests::issue_genesis() * improve how rng parameters are passed
- Loading branch information
Showing
8 changed files
with
321 additions
and
170 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
Oops, something went wrong.