Skip to content

Commit

Permalink
rm logic for assigning a value to l1StateBlockNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
YoGhurt111 committed Jul 3, 2024
1 parent babd13e commit a1d00f6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/taiko-client/proposer/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a1d00f6

Please sign in to comment.