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

Commit 5f11aa1

Browse files
dvushavalonche
authored andcommitted
set proposer payment to 26k (#31)
1 parent c039062 commit 5f11aa1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eth/block-validation/api_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func TestValidateBuilderSubmissionV1(t *testing.T) {
101101
}
102102
blockRequest.Message.Value = boostTypes.IntToU256(190526394825529)
103103
require.ErrorContains(t, api.ValidateBuilderSubmissionV1(blockRequest), "inaccurate payment")
104-
blockRequest.Message.Value = boostTypes.IntToU256(190277920613530)
104+
blockRequest.Message.Value = boostTypes.IntToU256(190215802060530)
105105
require.NoError(t, api.ValidateBuilderSubmissionV1(blockRequest))
106106

107107
// TODO: test with contract calling blacklisted address
@@ -142,7 +142,7 @@ func TestValidateBuilderSubmissionV1(t *testing.T) {
142142
invalidPayload.LogsBloom = boostTypes.Bloom{}
143143
copy(invalidPayload.ReceiptsRoot[:], hexutil.MustDecode("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421")[:32])
144144
blockRequest.ExecutionPayload = invalidPayload
145-
copy(blockRequest.Message.BlockHash[:], hexutil.MustDecode("0xbcefd7caec3624eb917a0a7055d6a6d5c2aeb71111adef5cc733577f7e6dd985")[:32])
145+
copy(blockRequest.Message.BlockHash[:], hexutil.MustDecode("0x65cded68b85277f489f22497731d8cece9e42f0429a250a5022a9417408f3998")[:32])
146146
require.ErrorContains(t, api.ValidateBuilderSubmissionV1(blockRequest), "could not apply tx 3", "insufficient funds for gas * price + value")
147147
}
148148

miner/worker.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const (
8383
// staleThreshold is the maximum depth of the acceptable stale block.
8484
staleThreshold = 7
8585

86-
paymentTxGas = 25000
86+
paymentTxGas = 26000
8787
)
8888

8989
var (
@@ -1833,6 +1833,6 @@ func (w *worker) createProposerPayoutTx(env *environment, recipient *common.Addr
18331833
gasPrice := new(big.Int).Set(env.header.BaseFee)
18341834
chainId := w.chainConfig.ChainID
18351835
log.Debug("createProposerPayoutTx", "sender", sender, "chainId", chainId.String(), "nonce", nonce, "amount", amount.String(), "baseFee", env.header.BaseFee.String(), "fee", fee)
1836-
tx := types.NewTransaction(nonce, *recipient, amount, 25000, gasPrice, nil)
1836+
tx := types.NewTransaction(nonce, *recipient, amount, paymentTxGas, gasPrice, nil)
18371837
return types.SignTx(tx, types.LatestSignerForChainID(chainId), w.config.BuilderTxSigningKey)
18381838
}

0 commit comments

Comments
 (0)