miner: fix pop wrong tx from normal txs queue, close XFN-37 (#1623)

This commit is contained in:
Daniel Liu 2025-11-03 18:46:10 +08:00 committed by GitHub
parent 45f7597c97
commit 0677ab40a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -970,7 +970,6 @@ func (w *Work) commitTransactions(mux *event.TypeMux, balanceFee map[common.Addr
copyState, _ := bc.State()
if err := core.ValidateXDCZApplyTransaction(bc, nil, copyState, common.BytesToAddress(data[4:])); err != nil {
log.Debug("XDCZApply: invalid token", "token", common.BytesToAddress(data[4:]).Hex())
txs.Pop()
continue
}
}
@ -979,7 +978,6 @@ func (w *Work) commitTransactions(mux *event.TypeMux, balanceFee map[common.Addr
copyState, _ := bc.State()
if err := core.ValidateXDCXApplyTransaction(bc, nil, copyState, common.BytesToAddress(data[4:])); err != nil {
log.Debug("XDCXApply: invalid token", "token", common.BytesToAddress(data[4:]).Hex())
txs.Pop()
continue
}
}