From ae93241478e109cc4d45a1dfcd80738a7ade3526 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 30 Jul 2024 17:05:48 +0000 Subject: [PATCH] Fix critical typo in the crazy cj storage scanner. --- eth-sender/source/scan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth-sender/source/scan.cpp b/eth-sender/source/scan.cpp index a2db1134a..2743ed48e 100644 --- a/eth-sender/source/scan.cpp +++ b/eth-sender/source/scan.cpp @@ -73,7 +73,7 @@ task Scan(const Brick<32> &root, Code_ &&code, Each_ &&each) { const auto there(here + leg.hex(false).substr(2 - (type & 0x1))); if ((type & 0x2) == 0) { - check = hash.substr(there.size()) != there ? EmptyVector : Brick<32>(proof[1].buf()); + check = hash.substr(0, there.size()) != there ? EmptyVector : Brick<32>(proof[1].buf()); offset = there.size(); if (!done.contains(there)) todo.emplace(there);