[lbry] mining: calculate claimtrie root hash for generate RPC

This commit is contained in:
Brannon King 2021-08-19 14:41:48 -04:00 committed by Roy Lee
parent 6784830246
commit e0870db24e

View file

@ -843,6 +843,11 @@ mempoolLoop:
// chain with no issues.
block := btcutil.NewBlock(&msgBlock)
block.SetHeight(nextBlockHeight)
if err := g.chain.SetClaimtrieHeader(block, blockUtxos); err != nil {
return nil, err
}
if err := g.chain.CheckConnectBlockTemplate(block); err != nil {
return nil, err
}