Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC: filter latest not triggered #492

Closed
jorisbontje opened this issue Mar 16, 2015 · 2 comments
Closed

RPC: filter latest not triggered #492

jorisbontje opened this issue Mar 16, 2015 · 2 comments

Comments

@jorisbontje
Copy link

Running the following filter in ethereum.js doesn't trigger any callback on go-ethereum. However it works fine with cpp-ethereum:

web3.eth.filter('latest').watch(function(res) {console.log(res)});

I would expect running filter with latest to watch for changes on the latest block as specified on https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethfilter

go-ethereum develop commit 0b8f66e
ethereum.js develop commit de5de9eec878e3eb6b0f8b8684463ce7fb50f990

Starting ethereum with:

ethereum -mine=true -rpc=true -rpcport=8080 --unlock=0x0b30af04d96bfb672de96d3b25e30b4eb9ff3ed0:bla
@tgerring
Copy link
Contributor

Added support for "latest" and "pending" in commit 5757f54. This hasn't yet been merged into develop

@jorisbontje
Copy link
Author

latest works now.

ngtuna added a commit to ngtuna/tomochain that referenced this issue Apr 24, 2019
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
* Send txFee to propser not to infraestructure fund
maoueh pushed a commit to streamingfast/go-ethereum that referenced this issue Jun 9, 2023
* Create MVHashMap and use it StateDB

* Parallel state processor

* Move fee burning and tipping out of state transition to reduce read/write dependencies between transactions

* Re-execute parallel tasks when there is a read in coinbase or burn address

* Block-stm optimization

Added tests for executor and two major improvements:

1. Add a dependency map during execution. This will prevent aborted tasks from being sent for execution immedaitely after failure.
2. Change the key of MVHashMap from string to a byte array. This will reduce time to convert byte slices to strings.

* Remove cache from executor test

* added mvhashmap unit tests (with  as key)

* Shard mvhashmap to reduce the time spent in global mutex

* Skip applying intermediate states

* Dependency improvement

* added test for status

* Create MVHashMap and use it StateDB

* Parallel state processor

* Move fee burning and tipping out of state transition to reduce read/write dependencies between transactions

* Re-execute parallel tasks when there is a read in coinbase or burn address

* Txn prioritizer implemented using mutex map (ethereum#487)

* basic txn prioritizer implemented using mutex map

* Re-execute parallel tasks when there is a read in coinbase or burn address

* Re-execute parallel tasks when there is a read in coinbase or burn address

* using *sync.RWMutex{} in mutexMap

Co-authored-by: Jerry <[email protected]>

* added getReadMap and getWriteMap (ethereum#473)

* Block-stm optimization

Added tests for executor and some improvements:

1. Add a dependency map during execution. This will prevent aborted tasks from being sent for execution immedaitely after failure.
2. Change the key of MVHashMap from string to a byte array. This will reduce time to convert byte slices to strings.
3. Use sync.Map to reduce the time spent in global mutex.
4. Skip applying intermediate states.
5. Estimate dependency when an execution fails without dependency information.
6. Divide execution task queue into two separate queues. One for relatively certain transactions, and the other for speculative future transactions.
7. Setting dependencies of Txs coming from the same sender before starting parallel execution.
8. Process results in their semantic order (transaction index) instead of the order when they arrive. Replace result channel with a priority queue.

* Do not write entire objects directly when applying write set in blockstm

* fixed a small bug in the Report function (ethereum#530)

* linters

Co-authored-by: Jerry <[email protected]>
spencer-tb pushed a commit to spencer-tb/go-ethereum that referenced this issue Oct 23, 2024
s1na pushed a commit to s1na/go-ethereum that referenced this issue Dec 2, 2024
XDC-05 remove 1s waiting time in miner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants