From a1d00f6d7773b8c2cc2ef9bfbb22e1170871493f Mon Sep 17 00:00:00 2001 From: gavin Date: Wed, 3 Jul 2024 09:04:07 +0800 Subject: [PATCH] rm logic for assigning a value to l1StateBlockNumber --- packages/taiko-client/proposer/proposer.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/taiko-client/proposer/proposer.go b/packages/taiko-client/proposer/proposer.go index c4d7fd5987..fe219b61e3 100644 --- a/packages/taiko-client/proposer/proposer.go +++ b/packages/taiko-client/proposer/proposer.go @@ -358,11 +358,6 @@ func (p *Proposer) ProposeTxList( parentMetaHash = parent.MetaHash } - if p.isPreconfirmationsEnabled() { - l1StateBlockNumber = parent.L1StateBlockNumber + 1 - timestamp = parent.Timestamp + 12 - } - txCandidate, err := p.txBuilder.Build( ctx, p.tierFees, @@ -448,10 +443,6 @@ func (p *Proposer) initTierFees() error { return nil } -func (p *Proposer) isPreconfirmationsEnabled() bool { - return len(p.PreconfirmationRPC) > 0 -} - // getParentOfLatestProposedBlock returns the parent block of the latest proposed block in protocol func (p *Proposer) getParentOfLatestProposedBlock( ctx context.Context,