Skip to content

Commit

Permalink
fix: wrong mapping caused by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Feb 23, 2024
1 parent 9ed4800 commit 389aba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BtcPrism.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ contract BtcPrism is IBtcPrism {
// erase any block hashes above newHeight, now invalidated.
// (in case we just accepted a shorter, heavier chain.)
for (uint256 i = newHeight + 1; i <= latestBlockHeight; ++i) {
blockHeightToHash[i] = 0;
blockHashes[i % MAX_ALLOWED_REORG] = 0;
}

emit NewTotalDifficultySinceRetarget(
Expand Down

0 comments on commit 389aba5

Please sign in to comment.