From 7180c88e508d2de268b2a05c81ce0e636f534401 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Mon, 8 Aug 2022 23:45:30 -0700 Subject: [PATCH] Revert "[lbry] mining: return witness_script instead of raw witness_commitment in GBT" This reverts commit d20a2e53b429138363af857653f9fd89deb71c6e. --- mining/mining.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mining/mining.go b/mining/mining.go index 61e4a1d1..987c134d 100644 --- a/mining/mining.go +++ b/mining/mining.go @@ -868,7 +868,7 @@ mempoolLoop: } // AddWitnessCommitment adds the witness commitment as an OP_RETURN outpout -// within the coinbase tx. The witness script is returned. +// within the coinbase tx. The raw commitment 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 witnessScript + return witnessCommitment } // UpdateBlockTime updates the timestamp in the header of the passed block to -- 2.45.3