forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: dibbler new genesis block with faucet utxos (tari-project#3688)
Description --- Generates a new genesis block for `dibbler` network, with faucet utxos Motivation and Context --- Previous genesis block was missing faucet utxos How Has This Been Tested? --- - Relevant unit tests - Built nodes, wallets, miner, started mining new chain, sent transactions between wallets - Registered a new asset, minted tokens, but was unable to send token between wallets (could not find by unique id, I think that has changed recently)
- Loading branch information
Byron Hambly
authored
Jan 10, 2022
1 parent
9dc7c13
commit 10011d1
Showing
6 changed files
with
4,097 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# testnet faucet utxo generator | ||
|
||
- To build the generator in release mode with avx2 enabled, run this command from the root folder of the tari repo: | ||
|
||
```bash | ||
RUSTFLAGS='-C target-feature=+avx2' cargo build --bin test_faucet --release --features avx2 | ||
``` | ||
|
||
- Copy the generated `test_faucet` binary from `target/release` to another folder | ||
- Navigate to that folder and execute the binary: `./test_faucet` | ||
- You should now have these additional files: `utxos.json` and `keys.json` | ||
|
||
- go to `print_new_genesis_block` test and check network is correct, then run the test to print the new raw block: | ||
|
||
``` | ||
cargo test --package tari_core --test mempool -- helpers::block_builders::print_new_genesis_block --exact --nocapture --ignored | ||
``` |
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.