Skip to content

Commit 0a21f53

Browse files
committed
getnewblockhex fills out proposal fedpeg program
1 parent 1892b67 commit 0a21f53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/mining.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,8 @@ UniValue getnewblockhex(const JSONRPCRequest& request)
10571057
}
10581058
std::vector<unsigned char> fedpeg_bytes = ParseHex(fps_str);
10591059
proposed.m_fedpegscript = CScript(fedpeg_bytes.begin(), fedpeg_bytes.end());
1060+
// Compute the P2WSH scriptPubKey of this fedpegscript
1061+
proposed.m_fedpeg_program = GetScriptForDestination(WitnessV0ScriptHash(proposed.m_fedpegscript));
10601062

10611063
UniValue extension_array = prop["extension_space"].get_array();
10621064
for (unsigned int i = 0; i < extension_array.size(); i++) {

0 commit comments

Comments
 (0)