diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-22 15:13:25 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:54 +0800 |
commit | ab838886bb7e378f87542cc37962637c6f8667da (patch) | |
tree | 8e58a8901bdfc0d75275cc96ca004d66a4143fc7 /core | |
parent | e0aee81b2d9da565f369373eaf9dc558db8a2a3d (diff) | |
download | dexon-ab838886bb7e378f87542cc37962637c6f8667da.tar dexon-ab838886bb7e378f87542cc37962637c6f8667da.tar.gz dexon-ab838886bb7e378f87542cc37962637c6f8667da.tar.bz2 dexon-ab838886bb7e378f87542cc37962637c6f8667da.tar.lz dexon-ab838886bb7e378f87542cc37962637c6f8667da.tar.xz dexon-ab838886bb7e378f87542cc37962637c6f8667da.tar.zst dexon-ab838886bb7e378f87542cc37962637c6f8667da.zip |
dex: misc fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/governance.go | 6 |
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 { |