-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
Geth console: clearInterval/clearTimeout fails from within setInterval function #1083
Comments
excellent catch, thanks, @zsfelfoldi take it? |
fixed in #1090 |
This does not seem to be fixed at all. This is with the latest (as of today) code on
It does not seem like I can reopen this bug, can someone please confirm and/or reopen this ? |
It has not been fixed indeed. @zelig was a bit too quick with closing this issue. |
@fjl status on this? |
fixed in #1811. |
maoueh
pushed a commit
to streamingfast/go-ethereum
that referenced
this issue
Nov 29, 2023
* added cache.blocklogs (FilterLogCacheSize) flag * updated docs * minor fix Co-authored-by: Mael Regnery <mael@mqli.fr> --------- Co-authored-by: Mael Regnery <mael@mqli.fr>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It does not seem possible to clear a timer from within the timer. This is not due to variable scoping (at least not on the JS-side), since the returnvalue
timer
is available - see below.Actual result (geth console) - the timer is not cleared until I manually call
clearInterval
:Expected result (from Google Chrome) - the timer clears itself successfully:
Oh, and it can be noted that the geth console does not return an id, like other JS engines, but instead some kind of special
Object
(some form of "otto value" from a go type, whatever that is). Perhaps this should be changed into an integer instead, for library compatibility with other platforms.The text was updated successfully, but these errors were encountered: