aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-03-16 15:02:53 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-16 15:02:53 +0800
commit918e1dc6347ef293e752b4a3f2b89f3a7ae20c0c (patch)
treef99e28736496f08848b8d7c0e3dd440a48cb0409
parent323699ad3f69b87ff24ba9d60f6bc0ef7fb4a3ff (diff)
downloaddexon-918e1dc6347ef293e752b4a3f2b89f3a7ae20c0c.tar.gz
dexon-918e1dc6347ef293e752b4a3f2b89f3a7ae20c0c.tar.zst
dexon-918e1dc6347ef293e752b4a3f2b89f3a7ae20c0c.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(),
}
}