I added a version 15 in the hardforks.cpp file in the src/hardforks/ directory and compiled it. I launched the newly compiled daemon and it does not show the version 15 as actually existing.

Are there any other files for the hard fork that need to actually exist on my custom monero fork?

1 Answer 1


That's what you need to do. You have to mine up to the height it's set to of course. Also reset the mainnet_hard_fork_version_1_till variable to 0 (same file) since you presumably start with a fresh chain. If you don't start with a fresh chain, punch yourself in the face a few times and reconsider.

  • What does the mainnet_hard_fork_version_1_till variable mean/do?
    – user12313
    Commented Jun 13, 2021 at 12:47
  • It says "if height < this height, don't bother calculating which version it is". It's an optimization.
    – user36303
    Commented Jun 13, 2021 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.