Skip to content

Commit 75edca8

Browse files
dvushavalonche
authored andcommitted
set proposer payment to 26k (ethereum#31)
1 parent 8e7dde2 commit 75edca8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eth/block-validation/api_test.go

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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 (
@@ -1832,6 +1832,6 @@ func (w *worker) createProposerPayoutTx(env *environment, recipient *common.Addr
18321832
gasPrice := new(big.Int).Set(env.header.BaseFee)
18331833
chainId := w.chainConfig.ChainID
18341834
log.Debug("createProposerPayoutTx", "sender", sender, "chainId", chainId.String(), "nonce", nonce, "amount", amount.String(), "baseFee", env.header.BaseFee.String(), "fee", fee)
1835-
tx := types.NewTransaction(nonce, *recipient, amount, 25000, gasPrice, nil)
1835+
tx := types.NewTransaction(nonce, *recipient, amount, paymentTxGas, gasPrice, nil)
18361836
return types.SignTx(tx, types.LatestSignerForChainID(chainId), w.config.BuilderTxSigningKey)
18371837
}

0 commit comments

Comments
 (0)