Skip to main content
11 votes
Accepted

How can I create a new Monero genesis block?

Go here and screw around with the genesis tx and nonce. You probably also want to change other stuff (network id) to avoid contacting live Monero nodes. I've helpfully decoded the genesis tx so you ...
Luigi's user avatar
  • 2,462
6 votes

Genesis transaction explanation?

The genesis block is not predicted. The genesis block is decided upon in advance, and then hard coded as the first block that must appear in the blockchain. You can see it hard coded in the codebase ...
knaccc's user avatar
  • 8,488
4 votes
Accepted

How can I get my own genesis tx to use in my monero fork?

I had the same problem. I had to solve it by writing custom function. It generates new account, save account keys to file, and sends block 0 reward money to it in genesis transaction. It also ...
Marko A.'s user avatar
4 votes

What's the difference between block height and block number?

The block height refers to the most recent block that has been mined. The block number refers to any block up until and including the current block height. Blockchain exploring sites are generally ...
iyrin's user avatar
  • 526
4 votes
Accepted

output_tx on Genesis Block

It's the output index. Assuming you just have one output (all the reward to a single output), just use 0. E.g. P=Hs(8rA || 0)G+B.
jtgrassie's user avatar
  • 19.2k
4 votes

How to create a Genesis Block

The genesis block is automatically created for you from the genesis transaction and the genesis nonce that is hard coded here: https://github.com/monero-project/monero/blob/...
knaccc's user avatar
  • 8,488
3 votes
Accepted

Mitigating Risks of Forking Monero

the link to the original code base is maintained Depends what you mean by "link". There is a link to the original code that is maintained whether you fork publicly on GitHub or whether you clone to a ...
knaccc's user avatar
  • 8,488
3 votes
Accepted

Is the Monero genesis block reward spendable?

It is spendable. There are a lot of clones which use the genesis block reward as premined coins
slb's user avatar
  • 78
3 votes
Accepted

Monero Fork (Genesis Block)

After you change the GENESIS_TX of "cryptonote_config.h", input following commands in your terminal: Creat node1: ./monerod --testnet --no-igd --hide-my-port --testnet-data-dir ~/test/node1 --...
p1gd0g's user avatar
  • 444
3 votes

How to generate a new genesis tx?

I fixed it changing this line from 1 to 0. your_coin/CMakeLists.txt:102 # set this to 0 if per-block checkpoint needs to be disabled set(PER_BLOCK_CHECKPOINT 0) It means that before I was running ...
Moises Torres's user avatar
3 votes
Accepted

Is it possible to reset the blockchain with a new genesis block for efficiency?

In Monero, it is impossible to distinguish between spent and unspent outputs. Therefore no one could create a new blockchain with just the unspent outputs from the current blockchain, because the ...
knaccc's user avatar
  • 8,488
3 votes

How would someone premine a direct fork of monero ( can it be done )

It should be easy to emit all the coins in the first block: Look for get_block_reward in cryptonote_basic_impl.cpp. You see how you're given the number of already generated coins. For the first block,...
user36303's user avatar
  • 34.8k
3 votes
Accepted

Steps to Fork Monero

Monero is based on Cryptonote, which has a forking guide. This guide will show you the places in Monero's codebase that you'll want to examine and modify: https://github.com/cryptonotefoundation/...
knaccc's user avatar
  • 8,488
2 votes
Accepted

Monero Genesis transaction & nonce

Your objective is to have a unique genesis block. You could achieve this by altering the genesis transaction, for example by altering the output key and transaction public key so that your own wallet ...
knaccc's user avatar
  • 8,488
2 votes
Accepted

Genesis TX varint

The encoding of a varint is answered in this comment. It's not a straight hex string to decimal conversion. From the specification: Varints are a method of serializing integers using one or more ...
jtgrassie's user avatar
  • 19.2k
2 votes

How to generate a checkpoint for checkpoint.cpp?

How to effectively generate the very first checkpoint? Mine a block and use it's block hash, height and difficulty. What are those values? Height, block hash, checksum? How are those created ...
jtgrassie's user avatar
  • 19.2k
1 vote
Accepted

Why not, on the next Monero fork upgrade, start fresh with balances intact?

Technically, you could create a new snapshot that would be smaller than the current chain, but not necessarily by much. Remember, there are a few very important qualities of a blockchain (and Monero'...
scoobybejesus's user avatar
1 vote
Accepted

Monero Genesis transaction & nonce - clarification

First you need to send yourself some funds on the real Monero blockchain. It doesn't matter how much. show_transfers in is displaying your transaction id, which is also known as the transaction hash ...
knaccc's user avatar
  • 8,488
1 vote

How to create a Genesis Block

When you are done reading all of knaccc's reference list, you can take a look at: node-genesis-block @knaccc I don't have enough reputation to up vote your answer, and OP appears to have lost his ...
Mogens TrasherDK's user avatar
1 vote

Genesis block successfully created but not visable in wallet-cli

i had the same problem. The thing is that the wallet does not process the genesis coinbase tx. To process it, edit the src/wallet/wallet2.cpp after line #2131. add if ((m_blockchain.size() == 1)...
jszwako's user avatar
  • 23
1 vote

How to mine monero genesis block reward (monero fork)

The genesis block is not mined, it is just made. See some details: How can I create a new Monero genesis block?
p1gd0g's user avatar
  • 444
1 vote

How would someone premine a direct fork of monero ( can it be done )

Monero has a tail emission, so it will never be 100% mined. You could probably take it apart and put it back together with a hard cap, but that would entail more than changing a few config variables.
scoobybejesus's user avatar
1 vote

What's the difference between block height and block number?

The blockchain is viewed as a typical C array. It is an ordered collection of blocks of size N, containing blocks with indices 0 to N-1 (for example, a blockchain of size 2 contains blocks 0 and 1). ...
user36303's user avatar
  • 34.8k
1 vote

How would someone premine a direct fork of monero ( can it be done )

The premine can be done for any crypto note coin. In the configuration file. You will set 2 areas. One will be the premine amount in percentage. The other variable to set is the wallet address that ...
rainmanp7's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible