1
0
Fork 0
forked from lthn/blockchain
blockchain/src/genesis
2025-10-05 14:00:36 +01:00
..
.genesis_tn.txt Testnet updates (#22) 2025-10-05 14:00:36 +01:00
_genesis.cpp.gen Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
_genesis.h.gen Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
_genesis_acc.cpp.gen Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
_genesis_acc_tn.cpp.gen Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
_genesis_tn.cpp.gen Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
_genesis_tn.h.gen Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
CMakeLists.txt Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
generate_test_genesis.cpp Testnet 1 (#15) 2025-09-30 16:48:13 +01:00
README.md Testnet 1 (#15) 2025-09-30 16:48:13 +01:00

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

  1. Generate Premine Wallet (Optional):

    This step generates a premine wallet. It sets the GENERATE_PREMINE_WALLET CMake option to 1 and the PREMINE_WALLET_PASSWORD to 12345678.

    cmake <cmake_release> <testnet> -DGENERATE_PREMINE_WALLET=1 -DPREMINE_WALLET_PASSWORD=12345678
    cmake --build ./src --target premine_wallet
    
  2. Generate Fresh Genesis Block:

    This step generates a fresh genesis block. It sets the GENERATE_FRESH_GENESIS CMake option to 1.

    cmake <cmake_release> <testnet> -DGENERATE_FRESH_GENESIS=1
    cmake --build ./src --target genesis_generator
    
  3. 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 || true at the end of the premine_wallet build command ensures that the script continues even if the build fails.
  • This process assumes that the CMAKE macro and other variables like dir_release are 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.