Skip to content

cmd/geth: fix ctrl-c interrupt in import command #31360

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

Merged
merged 3 commits into from
Mar 12, 2025

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Mar 12, 2025

When I press Ctrl-C during the import of multiple files, the import process will still attempt to import the subsequent files. However, in normal circumstances, users would expect the import to stop immediately upon pressing Ctrl-C.

And because the current file was not finished importing, subsequent import tasks often fail due to an unknown ancestor error.

@fjl fjl changed the title cmd: ctrl-c to halt the whole import process cmd/geth: fix ctrl-c interrupt in import command Mar 12, 2025
@fjl fjl merged commit 915d9d9 into ethereum:master Mar 12, 2025
1 of 2 checks passed
@fjl fjl added this to the 1.15.6 milestone Mar 12, 2025
@jsvisa jsvisa deleted the cmd-import-interrupted branch March 12, 2025 14:43
GrapeBaBa pushed a commit to optimism-java/shisui that referenced this pull request Mar 16, 2025
When I press Ctrl-C during the import of multiple files, the import
process will still attempt to import the subsequent files. However, in
normal circumstances, users would expect the import to stop immediately
upon pressing Ctrl-C.

And because the current file was not finished importing, subsequent
import tasks often fail due to an `unknown ancestor` error.

---------

Signed-off-by: jsvisa <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
sivaratrisrinivas pushed a commit to sivaratrisrinivas/go-ethereum that referenced this pull request Apr 21, 2025
When I press Ctrl-C during the import of multiple files, the import
process will still attempt to import the subsequent files. However, in
normal circumstances, users would expect the import to stop immediately
upon pressing Ctrl-C.

And because the current file was not finished importing, subsequent
import tasks often fail due to an `unknown ancestor` error.

---------

Signed-off-by: jsvisa <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants