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@dexon.org>2019-03-12 12:19:09 +0800
commite5957ec5894b4e13c555460d7b5e10dc5aad0295 (patch)
treeda2c0281872fd39bce29901c39598f9708aa8a61 /core
parentfc452a397e853a80d4de7edf8e08b96c1ee99314 (diff)
downloaddexon-e5957ec5894b4e13c555460d7b5e10dc5aad0295.tar.gz
dexon-e5957ec5894b4e13c555460d7b5e10dc5aad0295.tar.zst
dexon-e5957ec5894b4e13c555460d7b5e10dc5aad0295.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 {