diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-19 14:36:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 3314c0573822d5008211e076831258899565ba5d (patch) | |
tree | 5d5b97b513ef52746b4584b21f4efb636aba5106 /dex/app.go | |
parent | d41f3b1a9834e7911603b3ec3ddf0714d99ceca9 (diff) | |
download | dexon-3314c0573822d5008211e076831258899565ba5d.tar dexon-3314c0573822d5008211e076831258899565ba5d.tar.gz dexon-3314c0573822d5008211e076831258899565ba5d.tar.bz2 dexon-3314c0573822d5008211e076831258899565ba5d.tar.lz dexon-3314c0573822d5008211e076831258899565ba5d.tar.xz dexon-3314c0573822d5008211e076831258899565ba5d.tar.zst dexon-3314c0573822d5008211e076831258899565ba5d.zip |
governance: implement delegate/undelegate function and add tests (#33)
Implement delegate/undelegate function to allow others to delegate it's
fund to stake on a node. Also added governance contract tests.
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/app.go b/dex/app.go index e0280dc2c..99514ed83 100644 --- a/dex/app.go +++ b/dex/app.go @@ -245,7 +245,7 @@ func (d *DexconApp) PrepareWitness(consensusHeight uint64) (witness coreTypes.Wi if lastPendingHeight == 0 && consensusHeight == 0 { witnessBlock = d.blockchain.CurrentBlock() } else if lastPendingHeight >= consensusHeight { - witnessBlock = d.blockchain.GetPendingBlock() + witnessBlock = d.blockchain.PendingBlock() } else { log.Error("last pending height too low", "lastPendingHeight", lastPendingHeight, "consensusHeight", consensusHeight) |