From c6f0f6ae0d0961b7216400ec4aa8530b7acaeda2 Mon Sep 17 00:00:00 2001 From: blxdyx Date: Tue, 26 Nov 2024 15:50:42 +0800 Subject: [PATCH] enable fast node --- erigon-lib/state/domain_shared.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/erigon-lib/state/domain_shared.go b/erigon-lib/state/domain_shared.go index 17ba04d7386..73c3e6c0db5 100644 --- a/erigon-lib/state/domain_shared.go +++ b/erigon-lib/state/domain_shared.go @@ -1411,9 +1411,6 @@ func _decodeTxBlockNums(v []byte) (txNum, blockNum uint64) { // LatestCommitmentState searches for last encoded state for CommitmentContext. // Found value does not become current state. func (sdc *SharedDomainsCommitmentContext) LatestCommitmentState() (blockNum, txNum uint64, state []byte, err error) { - if dbg.DiscardCommitment() { - return 0, 0, nil, nil - } if sdc.patriciaTrie.Variant() != commitment.VariantHexPatriciaTrie { return 0, 0, nil, fmt.Errorf("state storing is only supported hex patricia trie") }