Update pricing record serialization for Zephyr version v2.0.0
This commit is contained in:
committed by
MoneroOcean
parent
d58b8a8f8d
commit
79e5c63a7d
@@ -1082,10 +1082,24 @@ namespace cryptonote
|
||||
} else if (blob_type == BLOB_TYPE_CRYPTONOTE_SALVIUM) {
|
||||
if (major_version >= 2) FIELD(salvium_pricing_record)
|
||||
} else if (blob_type == BLOB_TYPE_CRYPTONOTE_ZEPHYR) {
|
||||
if (major_version >= 4)
|
||||
if (major_version >= 6)
|
||||
{
|
||||
FIELD_N("pricing_record", zephyr_pricing_record)
|
||||
}
|
||||
else if (major_version >= 4)
|
||||
{
|
||||
zephyr_oracle::pricing_record_v3 pr_v3;
|
||||
if (!typename Archive<W>::is_saving())
|
||||
{
|
||||
FIELD(pr_v3)
|
||||
pr_v3.write_to_pr(zephyr_pricing_record);
|
||||
}
|
||||
else
|
||||
{
|
||||
pr_v3.read_from_pr(zephyr_pricing_record);
|
||||
FIELD(pr_v3)
|
||||
}
|
||||
}
|
||||
else if (major_version >= 3)
|
||||
{
|
||||
zephyr_oracle::pricing_record_v2 pr_v2;
|
||||
|
||||
Reference in New Issue
Block a user