core: kill off managed state, use own tiny noncer for txpool

This commit is contained in:
Péter Szilágyi
2019-07-09 10:34:35 +03:00
parent 5873c01c3d
commit a966425a1d
6 changed files with 77 additions and 289 deletions

View File

@ -185,7 +185,7 @@ func (b *EthAPIBackend) GetTransaction(ctx context.Context, txHash common.Hash)
}
func (b *EthAPIBackend) GetPoolNonce(ctx context.Context, addr common.Address) (uint64, error) {
return b.eth.txPool.State().GetNonce(addr), nil
return b.eth.txPool.Nonce(addr), nil
}
func (b *EthAPIBackend) Stats() (pending int, queued int) {