forked from lthn/blockchain
| .. | ||
| .genesis_tn.txt | ||
| _genesis.cpp.gen | ||
| _genesis.h.gen | ||
| _genesis_acc.cpp.gen | ||
| _genesis_acc_tn.cpp.gen | ||
| _genesis_tn.cpp.gen | ||
| _genesis_tn.h.gen | ||
| CMakeLists.txt | ||
| generate_test_genesis.cpp | ||
| README.md | ||
Genesis Block Update Instructions
This document outlines the steps to trigger a genesis block update. The following instructions are based on the provided Makefile snippet.
Prerequisites
- CMake
- Make
Steps
-
Generate Premine Wallet (Optional):
This step generates a premine wallet. It sets the
GENERATE_PREMINE_WALLETCMake option to1and thePREMINE_WALLET_PASSWORDto12345678.cmake <cmake_release> <testnet> -DGENERATE_PREMINE_WALLET=1 -DPREMINE_WALLET_PASSWORD=12345678 cmake --build ./src --target premine_wallet -
Generate Fresh Genesis Block:
This step generates a fresh genesis block. It sets the
GENERATE_FRESH_GENESISCMake option to1.cmake <cmake_release> <testnet> -DGENERATE_FRESH_GENESIS=1 cmake --build ./src --target genesis_generator -
Build the Project:
This step builds the entire project.
cmake <cmake_release> <testnet> make
Notes
- Replace
<cmake_release>and<testnet>with the actual values used in your environment. These are likely variables defined elsewhere in the Makefile. - The
|| trueat the end of thepremine_walletbuild command ensures that the script continues even if the build fails. - This process assumes that the
CMAKEmacro and other variables likedir_releaseare properly defined in the Makefile. - The exact impact of these steps on the genesis block update depends on the codebase. Consult the source code for more details.