edr
edr copied to clipboard
The `MemPool` should check the sum of outstanding gas costs for an account before allowing a new transaction for that account
The MemPool
currently only validates that the max cost of a transaction is not larger than the balance of the sender's account. We should ensure that the sum of balances of all queued & pending transactions + sent transaction is lower the the balance of the sender's account.