mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-16 07:48:20 +00:00
parent
2193d570a6
commit
e8e8e2f2e6
@ -685,7 +685,7 @@ func (p *TxPool) validateTx(txn *TxSlot, isLocal bool, stateCache kvcache.CacheV
|
||||
}
|
||||
// Transactor should have enough funds to cover the costs
|
||||
total := uint256.NewInt(txn.gas)
|
||||
total.Mul(total, uint256.NewInt(txn.tip))
|
||||
total.Mul(total, uint256.NewInt(txn.feeCap))
|
||||
total.Add(total, &txn.value)
|
||||
if senderBalance.Cmp(total) < 0 {
|
||||
if txn.traced {
|
||||
|
@ -176,8 +176,8 @@ func TestNonceFromAddress(t *testing.T) {
|
||||
{
|
||||
var txSlots TxSlots
|
||||
txSlot1 := &TxSlot{
|
||||
tip: 9 * common.Ether,
|
||||
feeCap: 300000,
|
||||
tip: 300000,
|
||||
feeCap: 9 * common.Ether,
|
||||
gas: 100000,
|
||||
nonce: 3,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user