You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README
+21-16Lines changed: 21 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -133,28 +133,33 @@ Example:
133
133
134
134
== Fifth step. Genesis block ==
135
135
136
-
Now your coin code is almost ready. You need to generate the coinbase transaction for your genesis block. Uncomment the following code in "generate_genesis_block(block& bl)" function in src/cryptonote_core/cryptonote_format_utils.cpp:
136
+
1. Build the binaries with blank genesis tx hex (src/cryptonote_config.h)
137
137
138
-
/*
139
-
account_public_address ac = boost::value_initialized<account_public_address>();
140
-
std::vector<size_t> sz;
141
-
construct_miner_tx(0, 0, 0, 0, 0, ac, bl.miner_tx); // zero fee in genesis
You should leave #define GENESIS_COINBASE_TX_HEX blank and compile the binaries without it.
146
139
147
-
Compile and run the daemon. As soon as it prints line starting with "Genesis coinbase tx hex: " copy the hex representation of the coinbase tx and paste it into generate_genesis_block function:
140
+
Example:
141
+
#define GENESIS_COINBASE_TX_HEX ""
142
+
143
+
144
+
2. Start the daemon to print out the genesis block
0 commit comments