[lbry] rpc: output segwit rule
This commit is contained in:
parent
9263ffb1b5
commit
d7d5fde249
2 changed files with 3 additions and 0 deletions
|
@ -300,6 +300,8 @@ type GetBlockTemplateResult struct {
|
|||
RejectReasion string `json:"reject-reason,omitempty"`
|
||||
|
||||
ClaimTrieHash string `json:"claimtrie"`
|
||||
|
||||
Rules []string `json:"rules,omitempty"`
|
||||
}
|
||||
|
||||
// GetMempoolEntryResult models the data returned from the getmempoolentry's
|
||||
|
|
|
@ -1771,6 +1771,7 @@ func (state *gbtWorkState) blockTemplateResult(useCoinbaseValue bool, submitOld
|
|||
// data, then include the witness commitment in the GBT result.
|
||||
if template.WitnessCommitment != nil {
|
||||
reply.DefaultWitnessCommitment = hex.EncodeToString(template.WitnessCommitment)
|
||||
reply.Rules = append(reply.Rules, "!segwit")
|
||||
}
|
||||
|
||||
if useCoinbaseValue {
|
||||
|
|
Loading…
Reference in a new issue