mining: include 'segwit' rule when no segwit txns in GBT #81
1 changed files with 2 additions and 0 deletions
|
@ -1900,6 +1900,8 @@ func (state *gbtWorkState) blockTemplateResult(useCoinbaseValue bool, submitOld
|
||||||
if template.WitnessCommitment != nil {
|
if template.WitnessCommitment != nil {
|
||||||
reply.DefaultWitnessCommitment = hex.EncodeToString(template.WitnessCommitment)
|
reply.DefaultWitnessCommitment = hex.EncodeToString(template.WitnessCommitment)
|
||||||
reply.Rules = append(reply.Rules, "!segwit")
|
reply.Rules = append(reply.Rules, "!segwit")
|
||||||
|
} else {
|
||||||
|
reply.Rules = append(reply.Rules, "segwit")
|
||||||
}
|
}
|
||||||
|
|
||||||
if useCoinbaseValue {
|
if useCoinbaseValue {
|
||||||
|
|
Loading…
Reference in a new issue