diff --git a/src/avalanche/proof.h b/src/avalanche/proof.h --- a/src/avalanche/proof.h +++ b/src/avalanche/proof.h @@ -11,14 +11,14 @@ #include #include #include -#include -#include #include #include #include +class ArgsManager; class CCoinsView; +struct bilingual_str; /** * How many UTXOs can be used for a single proof. @@ -122,16 +122,14 @@ SERIALIZE_METHODS(Proof, obj) { READWRITE(obj.sequence, obj.expirationTime, obj.master, obj.stakes); - if (!useLegacy(gArgs)) { + if (!useLegacy()) { READWRITE(obj.payoutScriptPubKey); } SER_READ(obj, obj.computeProofId()); } - static bool useLegacy(const ArgsManager &argsman) { - return argsman.GetBoolArg("-legacyavaproof", - AVALANCHE_DEFAULT_LEGACY_PROOF); - } + static bool useLegacy(); + static bool useLegacy(const ArgsManager &argsman); static bool FromHex(Proof &proof, const std::string &hexProof, bilingual_str &errorOut); diff --git a/src/avalanche/proof.cpp b/src/avalanche/proof.cpp --- a/src/avalanche/proof.cpp +++ b/src/avalanche/proof.cpp @@ -11,6 +11,8 @@ #include