aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-22 15:13:25 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:16 +0800
commit2a38e14fa33bebd002451561f3fc618cc8e4fb61 (patch)
treef7b3637ab1578c513b774fe9a7d55c39aafc363a /core
parentc690ad54f5a872728d4476ddb891892a5f93aec0 (diff)
downloadgo-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.tar
go-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.tar.gz
go-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.tar.bz2
go-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.tar.lz
go-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.tar.xz
go-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.tar.zst
go-tangerine-2a38e14fa33bebd002451561f3fc618cc8e4fb61.zip
dex: misc fixes
Diffstat (limited to 'core')
-rw-r--r--core/vm/governance.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go
index b5d703fd7..5e6cc0b4d 100644
--- a/core/vm/governance.go
+++ b/core/vm/governance.go
@@ -877,7 +877,7 @@ const (
crsLoc
dkgMasterPublicKeysLoc
dkgComplaintsLoc
- dkgFinailizedLoc
+ dkgFinalizedLoc
dkgFinalizedsCountLoc
ownerLoc
blockRewardLoc
@@ -1174,12 +1174,12 @@ func (s *GovernanceStateHelper) PushDKGComplaint(round *big.Int, complaint []byt
// mapping(address => bool)[] public dkgFinalized;
func (s *GovernanceStateHelper) DKGFinalized(round *big.Int, addr common.Address) bool {
- baseLoc := new(big.Int).Add(s.getSlotLoc(big.NewInt(dkgFinailizedLoc)), round)
+ baseLoc := new(big.Int).Add(s.getSlotLoc(big.NewInt(dkgFinalizedLoc)), round)
mapLoc := s.getMapLoc(baseLoc, addr.Bytes())
return s.getStateBigInt(mapLoc).Cmp(big.NewInt(0)) != 0
}
func (s *GovernanceStateHelper) PutDKGFinalized(round *big.Int, addr common.Address, finalized bool) {
- baseLoc := new(big.Int).Add(s.getSlotLoc(big.NewInt(dkgFinailizedLoc)), round)
+ baseLoc := new(big.Int).Add(s.getSlotLoc(big.NewInt(dkgFinalizedLoc)), round)
mapLoc := s.getMapLoc(baseLoc, addr.Bytes())
res := big.NewInt(0)
if finalized {