geth version 1.8.27
The pending nonce is 8 at first, then I send a transaction and use eth.getTransactionCount
to get the next pending nonce.
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
8
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
8
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
8
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
9
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
8
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
9
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
9
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
9
> eth.getTransactionCount("0xdc34f16b577032c49dddf0b0c44455fc29dbcf3e","pending")
9
I have two questions:
1. I use txpool.content.pending
and see there's a tx in the pending list(nonce=8). But eth.getTransactionCount
still return 8 and after a while, it return 9.
- Why
eth.getTransactionCount
still return a 8 when it returned 9 last time? (shown in the log above)