1
0
forked from circlecloud/tera

refactor: split pow cacl process

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-14 18:27:58 +08:00
parent 375134fdc3
commit a11f96e775
7 changed files with 43 additions and 24 deletions

View File

@@ -1325,7 +1325,7 @@ export default class CConsensus extends CBlock {
return SumPow / Count;
}
CreatePOWNew(Block) {
CreateHashMinimal(Block, global.GENERATE_BLOCK_ACCOUNT)
global.CreateHashMinimal(Block, global.GENERATE_BLOCK_ACCOUNT)
this.AddToMaxPOW(Block, {
SeqHash: Block.SeqHash, AddrHash: Block.AddrHash, PrevHash: Block.PrevHash, TreeHash: Block.TreeHash,
})