aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-03-16 15:02:53 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:58 +0800
commitc296c4f50f9048a31679298fafa773af8cddb6f2 (patch)
tree30eddd7fdce7838390de2b0ba2e50c00e6235bc4
parent37b46f3dc966ae578c3a0aedcda2ddb4e1a85444 (diff)
downloaddexon-c296c4f50f9048a31679298fafa773af8cddb6f2.tar.gz
dexon-c296c4f50f9048a31679298fafa773af8cddb6f2.tar.zst
dexon-c296c4f50f9048a31679298fafa773af8cddb6f2.zip
app: set delivered height correctly (#259)
-rw-r--r--dex/app.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/dex/app.go b/dex/app.go
index 8caa84837..7a1bb4cf8 100644
--- a/dex/app.go
+++ b/dex/app.go
@@ -70,6 +70,7 @@ func NewDexconApp(txPool *core.TxPool, blockchain *core.BlockChain, gov *DexconG
addressNonce: map[common.Address]uint64{},
addressCost: map[common.Address]*big.Int{},
addressCounter: map[common.Address]uint64{},
+ deliveredHeight: blockchain.CurrentBlock().NumberU64(),
}
}