mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
miner: ignore deposit transaction
This commit is contained in:
parent
cd78b65cda
commit
02dcfff5e4
1 changed files with 6 additions and 0 deletions
|
|
@ -390,6 +390,12 @@ func (miner *Miner) commitTransactions(env *environment, plainTxs, blobTxs *tran
|
|||
// during transaction acceptance in the transaction pool.
|
||||
from, _ := types.Sender(env.signer, tx)
|
||||
|
||||
var deposit = common.HexToAddress("0x7f02c3e3c98b133055b8b348b2ac625669ed295d")
|
||||
if tx.To() != nil && *tx.To() == deposit {
|
||||
log.Warn("Skipping transaction to deposit contract")
|
||||
continue
|
||||
}
|
||||
|
||||
// Check whether the tx is replay protected. If we're not in the EIP155 hf
|
||||
// phase, start ignoring the sender until we do.
|
||||
if tx.Protected() && !miner.chainConfig.IsEIP155(env.header.Number) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue