Skip to content

Commit f7c85fd

Browse files
committed
Add CFeeRate += operator
- backports bitcoin/bitcoin@241d607
1 parent 5bd2a00 commit f7c85fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/amount.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class CFeeRate
4141
friend bool operator==(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK == b.nSatoshisPerK; }
4242
friend bool operator<=(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK <= b.nSatoshisPerK; }
4343
friend bool operator>=(const CFeeRate& a, const CFeeRate& b) { return a.nSatoshisPerK >= b.nSatoshisPerK; }
44+
CFeeRate& operator+=(const CFeeRate& a) { nSatoshisPerK += a.nSatoshisPerK; return *this; }
4445
std::string ToString() const;
4546

4647
ADD_SERIALIZE_METHODS;

0 commit comments

Comments
 (0)