diff options
Diffstat (limited to 'core/headerchain.go')
-rw-r--r-- | core/headerchain.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/headerchain.go b/core/headerchain.go index 7714f568c..7f48a5f57 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -425,7 +425,10 @@ func (c *headerVerifierCache) state(round uint64) *vm.GovernanceState { if state, exist := c.stateCache.Get(round); exist { return state.(*vm.GovernanceState) } - state := c.gov.GetStateForConfigAtRound(round) + state, err := c.gov.GetConfigState(round) + if err != nil { + panic(err) + } c.stateCache.Add(round, state) return state } |