aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-19 14:36:36 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit9181d784fb453423c1a7dafe7c182feafd437376 (patch)
tree889f51b8751b272c8f6a39a4d9e6d34cf671c4b9 /dex/app.go
parentbe1f06a3acfc85f90a2a9f6dec3235b5bf1f0099 (diff)
downloaddexon-9181d784fb453423c1a7dafe7c182feafd437376.tar
dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.gz
dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.bz2
dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.lz
dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.xz
dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.zst
dexon-9181d784fb453423c1a7dafe7c182feafd437376.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.go2
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)