consensus: replace type assert with test (#4398)
If `consensus.finalityCounter` does not have anything stored (for example in Syncing mode), the `Load()` returns an interface that cannot be automatically asserted to an `int64`. This results in the node crashing. This commit fixes that.pull/4400/head
parent
941a92b744
commit
7d5eb9cd36
Loading…
Reference in new issue