Cal Bera

Results 27 comments of Cal Bera

@yihuang @dreamer-zq I've proposed an approach to use `CacheContext` and still handle nested reverts. Essentially, by implementing the cache contexts in the statedb journals, cache contexts can follow the snapshot/revert...

[The PATH Variable Explained for Beginners](https://codingflashlight.com/the-path-variable-explained/) @garrettparris

![image](https://user-images.githubusercontent.com/113940816/234399875-b3b8a7af-759a-4f9f-a42b-d4202ec1722c.png) We should send a `NewTxsEvent` on batch txs

current version is the logic used by geth’s light client txpool. now have to support pending and queued txs from geths core txpool

![image](https://user-images.githubusercontent.com/113940816/234374938-940813f6-849e-44ad-8c34-ea23c02f1370.png) Also adding support for the .Error check, I think we should do this (as Geth does) whenever accessing anything that could have caused an error (nonce, balance specifically)

Also we are now exposing the state plugin to be read from multiple threads, so do we need to lock there?

This PR should just introduce read-only changes, namely enabling RPC methods: `GetPoolNonce`, `SubscribeNewTxsEvent`

So I don’t think we need to merge this one. Implementing it via geth’s txpool provides more features and more testing, we just have to configure it correctly