From 46c0963a30202f36352fcbe3fb2bde372495467a Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 20 Sep 2023 14:31:34 +0800 Subject: [PATCH] *: add timestamp in MakeSigner --- core/state_processor.go | 2 +- internal/ethapi/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index e325819cd25a..68a2d9cb42d0 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -207,7 +207,7 @@ func ApplyTransaction(config *params.ChainConfig, bc ChainContext, author *commo } func ApplyTransactionWithResult(config *params.ChainConfig, bc ChainContext, author *common.Address, gp *GasPool, statedb *state.StateDB, header *types.Header, tx *types.Transaction, usedGas *uint64, cfg vm.Config) (*types.Receipt, *ExecutionResult, error) { - msg, err := TransactionToMessage(tx, types.MakeSigner(config, header.Number), header.BaseFee) + msg, err := TransactionToMessage(tx, types.MakeSigner(config, header.Number, header.Time), header.BaseFee) if err != nil { return nil, nil, err } diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index ee1fb9d649ae..791ca579bb06 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2304,7 +2304,7 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st coinbaseBalanceBefore := state.GetBalance(coinbase) bundleHash := sha3.NewLegacyKeccak256() - signer := types.MakeSigner(s.b.ChainConfig(), blockNumber) + signer := types.MakeSigner(s.b.ChainConfig(), blockNumber, timestamp) var totalGasUsed uint64 gasFees := new(big.Int) for i, tx := range txs {