Add support for view tags when scanning

- https://github.com/monero-project/monero/pull/8061
- also update import location for epee::misc_utils::get_gmt_time
This commit is contained in:
j-berman
2022-04-26 18:34:03 -07:00
committed by Lee *!* Clagett
parent 82495b2736
commit 271f0dcb64
4 changed files with 20 additions and 6 deletions

View File

@@ -93,6 +93,10 @@ namespace cryptonote
{
wire::object(source, WIRE_FIELD(hash));
}
static void read_bytes(wire::json_reader& source, txout_to_tagged_key& self)
{
wire::object(source, WIRE_FIELD(key), WIRE_FIELD(view_tag));
}
static void read_bytes(wire::json_reader& source, txout_to_key& self)
{
wire::object(source, WIRE_FIELD(key));
@@ -103,6 +107,7 @@ namespace cryptonote
WIRE_FIELD(amount),
wire::variant_field("transaction output variant", std::ref(self.target),
wire::option<txout_to_key>{"to_key"},
wire::option<txout_to_tagged_key>{"to_tagged_key"},
wire::option<txout_to_script>{"to_script"},
wire::option<txout_to_scripthash>{"to_scripthash"}
)