diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-23 19:38:51 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:51 +0800 |
commit | d8e73b37e12ce799dab8007660cc5a7d0301c652 (patch) | |
tree | 227c7a1b4a5f62ec292f1041201df68b4e58a5d7 /dex/app.go | |
parent | fcc5fe5ea800a9d3eeac487a151ea2c5a3ef6db1 (diff) | |
download | dexon-d8e73b37e12ce799dab8007660cc5a7d0301c652.tar.gz dexon-d8e73b37e12ce799dab8007660cc5a7d0301c652.tar.zst dexon-d8e73b37e12ce799dab8007660cc5a7d0301c652.zip |
dex: fix missing randomness assignment
Diffstat (limited to 'dex/app.go')
-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}) |