aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-23 19:38:51 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commita0cee7bf86278a9d8cb74b62acd50122636201d6 (patch)
treefaec55262468dfbe0e76fd0b8f827327f37e0efc
parenta1375db381e5e4c63fe68e9c13cd8b1c55efb8e0 (diff)
downloaddexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar
dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.gz
dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.bz2
dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.lz
dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.xz
dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.tar.zst
dexon-a0cee7bf86278a9d8cb74b62acd50122636201d6.zip
dex: fix missing randomness assignment
-rw-r--r--core/blockchain.go2
-rw-r--r--dex/app.go3
2 files changed, 3 insertions, 2 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 1baabc0d5..1300228e4 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1623,7 +1623,7 @@ func (bc *BlockChain) insertPendingBlocks(chain types.Blocks) (int, []interface{
if err != nil {
return i, nil, nil, fmt.Errorf("pendingState commit error: %v", err)
}
- log.Info("commit pending root", "hash", root)
+ log.Info("Commit pending root", "hash", root)
// add into pending blocks
bc.pendingBlocks[block.NumberU64()] = struct {
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})