diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-23 19:38:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | a0cee7bf86278a9d8cb74b62acd50122636201d6 (patch) | |
tree | faec55262468dfbe0e76fd0b8f827327f37e0efc /dex | |
parent | a1375db381e5e4c63fe68e9c13cd8b1c55efb8e0 (diff) | |
download | dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.gz dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.zst dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.zip |
dex: fix missing randomness assignment
Diffstat (limited to 'dex')
-rw-r--r-- | dex/app.go | 3 |
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}) |