From 553f649c5ec83978e9f8042b386335a6f859730f Mon Sep 17 00:00:00 2001 From: blxdyx Date: Tue, 10 Dec 2024 14:18:33 +0800 Subject: [PATCH] discard commitment --- erigon-lib/state/domain_shared.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erigon-lib/state/domain_shared.go b/erigon-lib/state/domain_shared.go index b133804c921..fcfb1bb2bee 100644 --- a/erigon-lib/state/domain_shared.go +++ b/erigon-lib/state/domain_shared.go @@ -325,7 +325,7 @@ func (sd *SharedDomains) SeekCommitment(ctx context.Context, tx kv.Tx) (txsFromB return 0, err } if dbg.DiscardCommitment() && bn == 0 { - txn = sd.aggTx.EndTxNumNoCommitment() + txn = sd.aggTx.EndTxNumNoCommitment() - 1 sd.SetBlockNum(bn) sd.SetTxNum(txn) return 0, nil