Avoid Banning Peer on ckb_vm::Error::External
Triggered by Ctrl-C Signal
#4701
Labels
t:bug
Type: This doesn't seem right.
Bug Report
ckb/script/src/verify.rs
Lines 1200 to 1204 in 8cb49e4
When chunk_run_with_signal receives ChunkCommand::Stop, it raises ckb_vm::Error::External, leading NetworkState to ban the peer. Since this error can result from a Ctrl-C signal, banning the peer is unnecessary.
Expected Behavior
Handle ckb_vm::Error::External triggered by signals (e.g., Ctrl-C) without banning the peer.
Environment
uname -a
]The text was updated successfully, but these errors were encountered: