Add CFeeRate += operator

(cherry picked from commit 241d6078ba26db4d3a36227d3275be2ee34625a6)
This commit is contained in:
Matt Corallo 2015-10-13 00:53:19 -07:00 committed by Jack Grigg
parent 983d802e4f
commit 24cfc4337d
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public:
friend bool operator==(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK == b.nSatoshisPerK; }
friend bool operator<=(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK <= b.nSatoshisPerK; }
friend bool operator>=(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK >= b.nSatoshisPerK; }
CFeeRate& operator+=(const CFeeRate& a) { nSatoshisPerK += a.nSatoshisPerK; return *this; }
std::string ToString() const;
ADD_SERIALIZE_METHODS;