mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Make WitnessUnknown members private
Make sure that nothing else can change WitnessUnknown's data members by making them private. Also change the program to use a vector rather than C-style array.
This commit is contained in:
parent
238d29aff9
commit
8dd067088d
8 changed files with 32 additions and 42 deletions
|
|
@ -303,8 +303,8 @@ public:
|
|||
{
|
||||
UniValue obj(UniValue::VOBJ);
|
||||
obj.pushKV("iswitness", true);
|
||||
obj.pushKV("witness_version", (int)id.version);
|
||||
obj.pushKV("witness_program", HexStr({id.program, id.length}));
|
||||
obj.pushKV("witness_version", id.GetWitnessVersion());
|
||||
obj.pushKV("witness_program", HexStr(id.GetWitnessProgram()));
|
||||
return obj;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue