diff options
Diffstat (limited to 'dex/downloader')
-rw-r--r-- | dex/downloader/testchain_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dex/downloader/testchain_test.go b/dex/downloader/testchain_test.go index 9595dc212..32e6110c4 100644 --- a/dex/downloader/testchain_test.go +++ b/dex/downloader/testchain_test.go @@ -332,15 +332,15 @@ func (g *govStateFetcher) SnapshotRound(round uint64, root common.Hash) { g.rootByRound[round] = root } -func (g *govStateFetcher) GetStateForConfigAtRound(round uint64) *vm.GovernanceState { +func (g *govStateFetcher) GetConfigState(round uint64) (*vm.GovernanceState, error) { if root, ok := g.rootByRound[round]; ok { s, err := state.New(root, g.db) if err != nil { - panic(err) + return nil, err } - return &vm.GovernanceState{s} + return &vm.GovernanceState{s}, nil } - return nil + return nil, nil } func (g *govStateFetcher) DKGSetNodeKeyAddresses(round uint64) (map[common.Address]struct{}, error) { |