Update pricing record serialization for Zephyr version v1.2.0 Artemis
This commit is contained in:
committed by
MoneroOcean
parent
6bb5e00c17
commit
eea6d166b2
@@ -958,10 +958,24 @@ namespace cryptonote
|
||||
if (blob_type == BLOB_TYPE_CRYPTONOTE_XTA) FIELD(cycle48)
|
||||
if (blob_type == BLOB_TYPE_CRYPTONOTE_XHV) FIELD(pricing_record)
|
||||
if (blob_type == BLOB_TYPE_CRYPTONOTE_ZEPHYR) {
|
||||
if (major_version >= 3)
|
||||
if (major_version >= 4)
|
||||
{
|
||||
FIELD_N("pricing_record", zephyr_pricing_record)
|
||||
}
|
||||
else if (major_version >= 3)
|
||||
{
|
||||
zephyr_oracle::pricing_record_v2 pr_v2;
|
||||
if (!typename Archive<W>::is_saving())
|
||||
{
|
||||
FIELD(pr_v2)
|
||||
pr_v2.write_to_pr(zephyr_pricing_record);
|
||||
}
|
||||
else
|
||||
{
|
||||
pr_v2.read_from_pr(zephyr_pricing_record);
|
||||
FIELD(pr_v2)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
zephyr_oracle::pricing_record_v1 pr_v1;
|
||||
|
||||
Reference in New Issue
Block a user