forked from such-gitea/wownero-lws
Fix a few serialization functions
This commit is contained in:
@@ -146,14 +146,14 @@ namespace db
|
|||||||
void map_spend(F& format, T1& self, T2& payment_id)
|
void map_spend(F& format, T1& self, T2& payment_id)
|
||||||
{
|
{
|
||||||
wire::object(format,
|
wire::object(format,
|
||||||
wire::field("height", self.link.height),
|
wire::field("height", std::ref(self.link.height)),
|
||||||
wire::field("tx_hash", std::ref(self.link.tx_hash)),
|
wire::field("tx_hash", std::ref(self.link.tx_hash)),
|
||||||
WIRE_FIELD(image),
|
WIRE_FIELD(image),
|
||||||
WIRE_FIELD(source),
|
WIRE_FIELD(source),
|
||||||
WIRE_FIELD(timestamp),
|
WIRE_FIELD(timestamp),
|
||||||
WIRE_FIELD(unlock_time),
|
WIRE_FIELD(unlock_time),
|
||||||
WIRE_FIELD(mixin_count),
|
WIRE_FIELD(mixin_count),
|
||||||
wire::optional_field("payment_id", payment_id)
|
wire::optional_field("payment_id", std::ref(payment_id))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -186,7 +186,7 @@ namespace db
|
|||||||
wire::object(format,
|
wire::object(format,
|
||||||
wire::field("key_image", std::ref(self.value)),
|
wire::field("key_image", std::ref(self.value)),
|
||||||
wire::field("tx_hash", std::ref(self.link.tx_hash)),
|
wire::field("tx_hash", std::ref(self.link.tx_hash)),
|
||||||
wire::field("height", self.link.height)
|
wire::field("height", std::ref(self.link.height))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user