mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-16 15:48:46 +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
|
// Transactor should have enough funds to cover the costs
|
||||||
total := uint256.NewInt(txn.gas)
|
total := uint256.NewInt(txn.gas)
|
||||||
total.Mul(total, uint256.NewInt(txn.tip))
|
total.Mul(total, uint256.NewInt(txn.feeCap))
|
||||||
total.Add(total, &txn.value)
|
total.Add(total, &txn.value)
|
||||||
if senderBalance.Cmp(total) < 0 {
|
if senderBalance.Cmp(total) < 0 {
|
||||||
if txn.traced {
|
if txn.traced {
|
||||||
|
@ -176,8 +176,8 @@ func TestNonceFromAddress(t *testing.T) {
|
|||||||
{
|
{
|
||||||
var txSlots TxSlots
|
var txSlots TxSlots
|
||||||
txSlot1 := &TxSlot{
|
txSlot1 := &TxSlot{
|
||||||
tip: 9 * common.Ether,
|
tip: 300000,
|
||||||
feeCap: 300000,
|
feeCap: 9 * common.Ether,
|
||||||
gas: 100000,
|
gas: 100000,
|
||||||
nonce: 3,
|
nonce: 3,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user