diff options
Diffstat (limited to 'core/test/governance.go')
-rw-r--r-- | core/test/governance.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/test/governance.go b/core/test/governance.go index 4970420..4ee20d8 100644 --- a/core/test/governance.go +++ b/core/test/governance.go @@ -94,6 +94,9 @@ func (g *Governance) Configuration(round uint64) *types.Config { // GetRoundHeight returns the begin height of a round. func (g *Governance) GetRoundHeight(round uint64) uint64 { + if round == 0 { + return 0 + } g.lock.RLock() defer g.lock.RUnlock() if round >= uint64(len(g.roundBeginHeights)) { |