aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-03-16 15:02:53 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commitc292584bf5c08031689f1fc080fde2c6b3b78218 (patch)
treeea55685d81971fd7e2a221ec5314f7edcc2157d9
parent2106d729745938a123ce502dcea9541d2b7b3fa5 (diff)
downloadgo-tangerine-c292584bf5c08031689f1fc080fde2c6b3b78218.tar.gz
go-tangerine-c292584bf5c08031689f1fc080fde2c6b3b78218.tar.zst
go-tangerine-c292584bf5c08031689f1fc080fde2c6b3b78218.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(),
}
}