[lbry] rpc, 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 3fde64cd63
commit 9ae7b95c85

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
}