serialize: add SER_PARAMS_OPFUNC

This commit is contained in:
Anthony Towns
2023-09-11 18:36:11 +10:00
parent 33203f59b4
commit 5e5c8f86b6
3 changed files with 15 additions and 0 deletions

View File

@@ -396,6 +396,7 @@ public:
};
struct SerParams : CNetAddr::SerParams {
const Format fmt;
SER_PARAMS_OPFUNC
};
static constexpr SerParams V1_NETWORK{{CNetAddr::Encoding::V1}, Format::Network};
static constexpr SerParams V2_NETWORK{{CNetAddr::Encoding::V2}, Format::Network};