Skip to content

Commit

Permalink
node: SupplyManager restared by SetHead API call
Browse files Browse the repository at this point in the history
  • Loading branch information
blukat29 committed Aug 13, 2024
1 parent e077455 commit 91c257e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node/cn/api_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func (b *CNAPIBackend) SetHead(number uint64) error {
b.cn.protocolManager.Downloader().Cancel()
b.cn.protocolManager.SetSyncStop(true)
defer b.cn.protocolManager.SetSyncStop(false)
b.cn.supplyManager.Stop()
defer b.cn.supplyManager.Start()
return doSetHead(b.cn.blockchain, b.cn.engine, b.cn.governance, b.gpo, number)
}

Expand Down

0 comments on commit 91c257e

Please sign in to comment.