-
Notifications
You must be signed in to change notification settings - Fork 21.6k
cmd, eth/catalyst: exit geth only if exitWhenSynced is specified #32149
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
Conversation
|
If INFO [07-04|19:53:30.110] Waiting for peers to retrieve sync target
INFO [07-04|19:53:31.283] New local node record seq=1,748,495,301,014 id=0675dea4fd3489a3 ip=122.247.51.135 udp=31666 tcp=31666
INFO [07-04|19:53:40.113] Removing old bloom bits database in progress... elapsed=10.003s
INFO [07-04|19:53:40.310] Block synchronisation started
WARN [07-04|19:53:40.311] Retrieved pivot header from local number=5,163,530 hash=bff7fe..02866c latest=5,163,594 oldest=5,163,594
INFO [07-04|19:53:40.652] Removing old bloom bits database finished elapsed=10.542s
INFO [07-04|19:53:45.310] Full-sync target reached number=5,163,594 hash=b9c677..2a0cb1
INFO [07-04|19:53:45.310] Terminating the node
INFO [07-04|19:53:45.310] HTTP server stopped endpoint=127.0.0.1:4778
INFO [07-04|19:53:45.311] HTTP server stopped endpoint=127.0.0.1:5778
INFO [07-04|19:53:45.311] HTTP server stopped endpoint=127.0.0.1:6666
INFO [07-04|19:53:45.311] IPC endpoint closed url=/home/gary/eth-sepolia-hash/el/geth.ipc
INFO [07-04|19:53:47.485] Ethereum protocol stopped
INFO [07-04|19:53:47.485] Transaction pool stopped
INFO [07-04|19:53:47.551] Blockchain stopped |
|
Whats the idea behind this? Couldn't you just write a script that sends a SIGTERM once the node is synced up, if you want the node to exit when its synced? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems okay to me. We already have this flag anyways.
The issue is we always terminate the Geth when the target is reached, by default. With this PR, the behavior is changed, keeping Geth running unless |
…ereum#32149) This pull request modifies the behavior of `--synctarget` to terminate the node only when `--exitWhenSynced` is explicitly specified.
…ereum#32149) This pull request modifies the behavior of `--synctarget` to terminate the node only when `--exitWhenSynced` is explicitly specified.
This pull request modifies the behavior of
--synctargetto terminate the nodeonly when
--exitWhenSyncedis explicitly specified.