forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poll chain state for contract callback invocation
Previously we relied on filters to watch for block events for firing contract- creation callback functions. With this change, we now poll the chain's state on the javascript side using `setInterval`. This is necessary for low-latency consensus mechanisms like Raft, where a block event reguarly fires before the web3 layer is able to set the filter to watch for such events. This fixes ethereum#86.
- Loading branch information
Showing
1 changed file
with
42 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters