mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Update blockchain.go
This commit is contained in:
parent
55f01f4ff2
commit
9230d12dad
1 changed files with 6 additions and 0 deletions
|
|
@ -1108,6 +1108,12 @@ func (bc *BlockChain) stopWithoutSaving() {
|
|||
// Stop stops the blockchain service. If any imports are currently in progress
|
||||
// it will abort them using the procInterrupt.
|
||||
func (bc *BlockChain) Stop() {
|
||||
// SYSCOIN we set canonical chain if we are stopping or we have synced
|
||||
if bc.NevmBlockConnect != nil {
|
||||
if _, err := bc.SetCanonical(bc.NevmBlockConnect.Block); err != nil {
|
||||
log.Error("Failed setting canonical chain from NEVM block connect", "err", err)
|
||||
}
|
||||
}
|
||||
bc.stopWithoutSaving()
|
||||
|
||||
// Ensure that the entirety of the state snapshot is journaled to disk.
|
||||
|
|
|
|||
Loading…
Reference in a new issue