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 13:50:04 +0800
commit6e92ea4bce5cb9792f8433b172af0726e599af4f (patch)
treee8ff1661b57c65ef7379a5db7677326189eb755d
parent18f93bfb5baa296f41ce6a22df4311dee672b08b (diff)
downloaddexon-6e92ea4bce5cb9792f8433b172af0726e599af4f.tar.gz
dexon-6e92ea4bce5cb9792f8433b172af0726e599af4f.tar.zst
dexon-6e92ea4bce5cb9792f8433b172af0726e599af4f.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(),
}
}