Skip to content

Commit

Permalink
feat: add id to getislocks rpc output
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Mar 3, 2025
1 parent 26ea618 commit fec75a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ static RPCHelpMan getislocks()
},
},
}},
{RPCResult::Type::STR_HEX, "id", "Request ID"},
{RPCResult::Type::STR_HEX, "cycleHash", "The Cycle Hash"},
{RPCResult::Type::STR_HEX, "signature", "The InstantSend's BLS signature"},
{RPCResult::Type::STR_HEX, "hex", "The serialized, hex-encoded data for 'txid'"},
Expand Down Expand Up @@ -424,6 +425,7 @@ static RPCHelpMan getislocks()
inputs.push_back(outpoint);
}
objIS.pushKV("inputs", inputs);
objIS.pushKV("id", islock->GetRequestId().ToString());
objIS.pushKV("cycleHash", islock->cycleHash.ToString());
objIS.pushKV("signature", islock->sig.ToString());
{
Expand Down

0 comments on commit fec75a3

Please sign in to comment.