]> Git Repo - VerusCoin.git/blobdiff - src/core.h
estimatefee / estimatepriority RPC methods
[VerusCoin.git] / src / core.h
index 9fccffc4b29e8f231d9059751cd3d566a58b8185..0e5912934962cab3cc5c4d8d4e9b6049b1271ec7 100644 (file)
@@ -120,6 +120,7 @@ class CFeeRate
 private:
     int64_t nSatoshisPerK; // unit is satoshis-per-1,000-bytes
 public:
+    CFeeRate() : nSatoshisPerK(0) { }
     explicit CFeeRate(int64_t _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) { }
     CFeeRate(int64_t nFeePaid, size_t nSize);
     CFeeRate(const CFeeRate& other) { nSatoshisPerK = other.nSatoshisPerK; }
@@ -132,6 +133,8 @@ public:
     friend bool operator==(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK == b.nSatoshisPerK; }
 
     std::string ToString() const;
+
+    IMPLEMENT_SERIALIZE( READWRITE(nSatoshisPerK); )
 };
 
 
This page took 0.020862 seconds and 4 git commands to generate.