aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-13 16:21:51 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commitc1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b (patch)
treefd6e0d823a019c871669f4c07d664769c851f151 /core/vm
parentfdd1b2900392b4ecf089b89d88b563430e18d4b0 (diff)
downloaddexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.tar
dexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.tar.gz
dexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.tar.bz2
dexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.tar.lz
dexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.tar.xz
dexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.tar.zst
dexon-c1d8ff3295b2b9b4b89cf04dcd8199ef1434ab1b.zip
dex: bug fix to allow running geth without crashing
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/governance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go
index 5bbb5a1ec..0cca0f409 100644
--- a/core/vm/governance.go
+++ b/core/vm/governance.go
@@ -1041,7 +1041,7 @@ func (s *GovernanceStateHelper) Node(index *big.Int) *nodeInfo {
loc = new(big.Int).Add(elementBaseLoc, big.NewInt(2))
node.Staked = s.getStateBigInt(loc)
- return nil
+ return node
}
func (s *GovernanceStateHelper) PushNode(n *nodeInfo) {
// increase length by 1