Commit 4e04ff00 authored by heyubin's avatar heyubin Committed by vipwzw

add by hyb for lint

parent 43160a1f
...@@ -403,6 +403,7 @@ func (client *blockSyncClient) addBlock(lastBlock *types.Block, localBlock *pt.P ...@@ -403,6 +403,7 @@ func (client *blockSyncClient) addBlock(lastBlock *types.Block, localBlock *pt.P
} }
//挖矿固定难度 //挖矿固定难度
newBlock.Difficulty = cfg.GetP(0).PowLimitBits newBlock.Difficulty = cfg.GetP(0).PowLimitBits
//需要首先对交易进行排序然后再计算TxHash //需要首先对交易进行排序然后再计算TxHash
if cfg.IsFork(newBlock.GetMainHeight(), "ForkRootHash") { if cfg.IsFork(newBlock.GetMainHeight(), "ForkRootHash") {
newBlock.Txs = types.TransactionSort(newBlock.Txs) newBlock.Txs = types.TransactionSort(newBlock.Txs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment