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 benjamin202410
parent 9d40fb40fc
commit 1b9d9ee42c

View file

@ -971,7 +971,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
}
}
@ -980,7 +979,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
}
}