aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-23 19:38:51 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commitf5931718c0ac3150dab7d6367b6a4c8d4f692730 (patch)
treeaf3d5e3baadccc62bc62e31a6deb69af2b239bb3 /dex/app.go
parent23b8e1fb710c2f5035ae3c0441d8cd19e955b307 (diff)
downloaddexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.tar
dexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.tar.gz
dexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.tar.bz2
dexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.tar.lz
dexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.tar.xz
dexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.tar.zst
dexon-f5931718c0ac3150dab7d6367b6a4c8d4f692730.zip
dex: fix missing randomness assignment
Diffstat (limited to 'dex/app.go')
-rw-r--r--dex/app.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dex/app.go b/dex/app.go
index b60291902..7de2bdc86 100644
--- a/dex/app.go
+++ b/dex/app.go
@@ -474,8 +474,9 @@ func (d *DexconApp) BlockDelivered(blockHash coreCommon.Hash, result coreTypes.F
WitnessReceiptHash: witnessData.ReceiptHash,
// TODO(bojie): fix it
GasLimit: 8000000,
- DexconMeta: dexconMeta,
Difficulty: big.NewInt(1),
+ DexconMeta: dexconMeta,
+ Randomness: result.Randomness,
}, transactions, nil, nil)
_, err = d.blockchain.InsertPendingBlocks([]*types.Block{newBlock})