Skip to content

Commit

Permalink
Testnet rebuild workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Jan 7, 2024
1 parent 4d8f502 commit 06b58fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/Validation.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ public static void checkBlockBasics(NetworkParams params, Block blk, boolean req
{
throw new ValidationException("Block too far into future");
}
if (header.getBlockHeight() >= 280930)
if (params.getAddressPrefix().equals("snowtest"))
{
throw new ValidationException("Rebuild disaster");

}

validateChainHash(header.getPrevBlockHash(), "prev_block_hash");
validateChainHash(header.getMerkleRootHash(), "merkle_root_hash");
Expand Down

0 comments on commit 06b58fd

Please sign in to comment.