[lbry] rpc: add ClaimTrie root hash to GetBlockTemplate()
This commit is contained in:
parent
7f3d51f8c3
commit
8205e467af
1 changed files with 21 additions and 17 deletions
|
@ -1765,6 +1765,7 @@ func (state *gbtWorkState) blockTemplateResult(useCoinbaseValue bool, submitOld
|
||||||
Mutable: gbtMutableFields,
|
Mutable: gbtMutableFields,
|
||||||
NonceRange: gbtNonceRange,
|
NonceRange: gbtNonceRange,
|
||||||
Capabilities: gbtCapabilities,
|
Capabilities: gbtCapabilities,
|
||||||
|
ClaimTrieHash: header.ClaimTrie.String(),
|
||||||
}
|
}
|
||||||
// If the generated block template includes transactions with witness
|
// If the generated block template includes transactions with witness
|
||||||
// data, then include the witness commitment in the GBT result.
|
// data, then include the witness commitment in the GBT result.
|
||||||
|
@ -4663,5 +4664,8 @@ func (s *rpcServer) handleBlockchainNotification(notification *blockchain.Notifi
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rpcHandlers = rpcHandlersBeforeInit
|
rpcHandlers = rpcHandlersBeforeInit
|
||||||
|
for key := range claimtrieHandlers {
|
||||||
|
rpcHandlers[key] = claimtrieHandlers[key]
|
||||||
|
}
|
||||||
rand.Seed(time.Now().UnixNano())
|
rand.Seed(time.Now().UnixNano())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue