[lbry] mining: return witness_script instead of raw witness_commitment in GBT
This commit is contained in:
parent
29f64f9dcf
commit
d20a2e53b4
1 changed files with 2 additions and 2 deletions
|
@ -868,7 +868,7 @@ mempoolLoop:
|
|||
}
|
||||
|
||||
// AddWitnessCommitment adds the witness commitment as an OP_RETURN outpout
|
||||
// within the coinbase tx. The raw commitment is returned.
|
||||
// within the coinbase tx. The witness script is returned.
|
||||
func AddWitnessCommitment(coinbaseTx *btcutil.Tx,
|
||||
blockTxns []*btcutil.Tx) []byte {
|
||||
|
||||
|
@ -907,7 +907,7 @@ func AddWitnessCommitment(coinbaseTx *btcutil.Tx,
|
|||
coinbaseTx.MsgTx().TxOut = append(coinbaseTx.MsgTx().TxOut,
|
||||
commitmentOutput)
|
||||
|
||||
return witnessCommitment
|
||||
return witnessScript
|
||||
}
|
||||
|
||||
// UpdateBlockTime updates the timestamp in the header of the passed block to
|
||||
|
|
Loading…
Reference in a new issue