Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 5a4c061

Browse files
Merge branch 'main' into eip4844
2 parents 7f97017 + 4619778 commit 5a4c061

File tree

9 files changed

+14
-1
lines changed

9 files changed

+14
-1
lines changed

cmd/flags/proposer.go

+5
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ var (
126126
Name: "blobAllowed",
127127
Usage: "Send blob tx when propose block",
128128
Value: false,
129+
L1BlockBuilderTip = &cli.Uint64Flag{
130+
Name: "l1BlockBuilderTip",
131+
Usage: "Amount you wish to tip the L1 block builder",
132+
Value: 0,
129133
Category: proposerCategory,
130134
}
131135
)
@@ -154,4 +158,5 @@ var ProposerFlags = MergeFlags(CommonFlags, []cli.Flag{
154158
ProposeBlockIncludeParentMetaHash,
155159
ProposerAssignmentHookAddress,
156160
BlobAllowed,
161+
L1BlockBuilderTip,
157162
})

driver/chain_syncer/calldata/syncer_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func (s *CalldataSyncerTestSuite) SetupTest() {
6868
SgxAndPseZkevmTierFee: common.Big256,
6969
MaxTierFeePriceBumps: 3,
7070
TierFeePriceBump: common.Big2,
71+
L1BlockBuilderTip: common.Big0,
7172
}))
7273

7374
s.p = prop

driver/chain_syncer/chain_syncer_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func (s *ChainSyncerTestSuite) SetupTest() {
7070
MaxTierFeePriceBumps: 3,
7171
TierFeePriceBump: common.Big2,
7272
ExtraData: "test",
73+
L1BlockBuilderTip: common.Big0,
7374
}))
7475

7576
s.p = prop

driver/driver_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ func (s *DriverTestSuite) SetupTest() {
7575
SgxAndPseZkevmTierFee: common.Big256,
7676
MaxTierFeePriceBumps: 3,
7777
TierFeePriceBump: common.Big2,
78+
L1BlockBuilderTip: common.Big0,
7879
}))
7980
s.p = p
8081
}

proposer/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type Config struct {
4040
MaxTierFeePriceBumps uint64
4141
IncludeParentMetaHash bool
4242
BlobAllowed bool
43+
L1BlockBuilderTip *big.Int
4344
}
4445

4546
// NewConfigFromCliContext initializes a Config instance from
@@ -128,5 +129,6 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
128129
MaxTierFeePriceBumps: c.Uint64(flags.MaxTierFeePriceBumps.Name),
129130
IncludeParentMetaHash: c.Bool(flags.ProposeBlockIncludeParentMetaHash.Name),
130131
BlobAllowed: c.Bool(flags.BlobAllowed.Name),
132+
L1BlockBuilderTip: new(big.Int).SetUint64(c.Uint64(flags.L1BlockBuilderTip.Name)),
131133
}, nil
132134
}

proposer/proposer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func (p *Proposer) sendProposeBlockTx(
463463
// TODO: flag for additional hook addresses and data.
464464
hookInputData, err := encoding.EncodeAssignmentHookInput(&encoding.AssignmentHookInput{
465465
Assignment: assignment,
466-
Tip: common.Big0, // TODO: flag for tip
466+
Tip: p.L1BlockBuilderTip,
467467
})
468468
if err != nil {
469469
return nil, err

proposer/proposer_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func (s *ProposerTestSuite) SetupTest() {
5858
MaxTierFeePriceBumps: 3,
5959
ExtraData: "test",
6060
BlobAllowed: true,
61+
L1BlockBuilderTip: common.Big0,
6162
}))
6263

6364
s.p = p

prover/proof_submitter/proof_submitter_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ func (s *ProofSubmitterTestSuite) SetupTest() {
110110
SgxAndPseZkevmTierFee: common.Big256,
111111
MaxTierFeePriceBumps: 3,
112112
TierFeePriceBump: common.Big2,
113+
L1BlockBuilderTip: common.Big0,
113114
}))
114115

115116
s.proposer = prop

prover/prover_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func (s *ProverTestSuite) SetupTest() {
9292
SgxAndPseZkevmTierFee: common.Big256,
9393
MaxTierFeePriceBumps: 3,
9494
TierFeePriceBump: common.Big2,
95+
L1BlockBuilderTip: common.Big0,
9596
}))
9697

9798
s.proposer = prop

0 commit comments

Comments
 (0)