mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
getnewblockhex fills out proposal fedpeg program
This commit is contained in:
parent
44f55d36c0
commit
04cc76743e
1 changed files with 2 additions and 0 deletions
|
|
@ -1057,6 +1057,8 @@ UniValue getnewblockhex(const JSONRPCRequest& request)
|
|||
}
|
||||
std::vector<unsigned char> fedpeg_bytes = ParseHex(fps_str);
|
||||
proposed.m_fedpegscript = CScript(fedpeg_bytes.begin(), fedpeg_bytes.end());
|
||||
// Compute the P2WSH scriptPubKey of this fedpegscript
|
||||
proposed.m_fedpeg_program = GetScriptForDestination(WitnessV0ScriptHash(proposed.m_fedpegscript));
|
||||
|
||||
UniValue extension_array = prop["extension_space"].get_array();
|
||||
for (unsigned int i = 0; i < extension_array.size(); i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue