diff options
author | Jean Pierre Dudey <jeandudey@hotmail.com> | 2018-02-13 20:51:37 -0400 |
---|---|---|
committer | Jean Pierre Dudey <jeandudey@hotmail.com> | 2018-02-14 16:31:17 -0400 |
commit | 73ca47243f1ee0e810cf2ff6164fce17b2a5abde (patch) | |
tree | 5fd227c5664dd5c88bd98c4378325fc4d4ea8c00 /src/cryptonote_config.h | |
parent | Merge pull request #3198 (diff) | |
download | monero-73ca47243f1ee0e810cf2ff6164fce17b2a5abde.tar.xz |
Use `genesis_tx` parameter in `generate_genesis_block`.
* src/cryptnote_config.h: The constant `config::testnet::GENESIS_TX` was
changed to be the same as `config::GENESIS_TX` (the mainnet's transaction)
because the mainnet's transaction was being used for both networks.
* src/cryptonote_core/cryptonote_tx_utils.cpp: The `generate_genesis_block` function
was ignoring the `genesis_tx` parameter, and instead it was using the `config::GENESIS_TX`
constant. That's why the testnet genesis transaction was changed. Also five lines of unused
code were removed.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 0ece65028..529dd83b8 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -171,7 +171,7 @@ namespace config boost::uuids::uuid const NETWORK_ID = { { 0x12 ,0x30, 0xF1, 0x71 , 0x61, 0x04 , 0x41, 0x61, 0x17, 0x31, 0x00, 0x82, 0x16, 0xA1, 0xA1, 0x11 } }; // Bender's daydream - std::string const GENESIS_TX = "013c01ff0001ffffffffffff0f029b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f5142ee494ffbbd0880712101168d0c4ca86fb55a4cf6a36d31431be1c53a3bd7411bb24e8832410289fa6f3b"; + std::string const GENESIS_TX = "013c01ff0001ffffffffffff03029b2e4c0281c0b02e7c53291a94d1d0cbff8883f8024f5142ee494ffbbd08807121017767aafcde9be00dcfd098715ebcf7f410daebc582fda69d24a28e9d0bc890d1"; uint32_t const GENESIS_NONCE = 10001; } } |