From 06b58fd1bb360cc923f7e54c37e77d88570df3c3 Mon Sep 17 00:00:00 2001 From: fireduck64 Date: Sat, 6 Jan 2024 21:33:46 -0800 Subject: [PATCH] Testnet rebuild workaround --- lib/src/Validation.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/Validation.java b/lib/src/Validation.java index f563d18..f2564ad 100644 --- a/lib/src/Validation.java +++ b/lib/src/Validation.java @@ -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");