aboutsummaryrefslogtreecommitdiffstats
path: root/core/headerchain.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-02-25 19:35:06 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commitbfac6dd5391b871d148713014f2694d31d9b6ea4 (patch)
treeb80909c9f5ad6f6021b3ebacff51c73469401765 /core/headerchain.go
parent2b2396b6bce0f21b515ac2d38556f6dca08b1770 (diff)
downloadgo-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar
go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.gz
go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.bz2
go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.lz
go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.xz
go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.tar.zst
go-tangerine-bfac6dd5391b871d148713014f2694d31d9b6ea4.zip
core: vm: flatten governance
Diffstat (limited to 'core/headerchain.go')
-rw-r--r--core/headerchain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/headerchain.go b/core/headerchain.go
index 17cedffdd..946b96f18 100644
--- a/core/headerchain.go
+++ b/core/headerchain.go
@@ -538,7 +538,7 @@ func (hc *HeaderChain) verifyDexonHeader(header *types.Header,
return fmt.Errorf("round mismatch")
}
- gs := gov.GetGovStateHelperAtRound(header.Round)
+ gs := gov.GetStateForConfigAtRound(header.Round)
config := gs.Configuration()
if header.GasLimit != config.BlockGasLimit {
return fmt.Errorf("block gas limit mismatch")