From 3314c0573822d5008211e076831258899565ba5d Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 19 Nov 2018 14:36:36 +0800 Subject: 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. --- dex/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dex/app.go') 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) -- cgit v1.2.3