diff options
| author | Matt Corallo <[email protected]> | 2015-10-13 00:53:19 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2015-10-13 01:04:39 -0700 |
| commit | 241d6078ba26db4d3a36227d3275be2ee34625a6 (patch) | |
| tree | 717da978c3a0e4cd6e55b91fdf0452e5f838896c /src | |
| parent | Track (and define) ::minRelayTxFee in CTxMemPool (diff) | |
| download | discoin-241d6078ba26db4d3a36227d3275be2ee34625a6.tar.xz discoin-241d6078ba26db4d3a36227d3275be2ee34625a6.zip | |
Add CFeeRate += operator
Diffstat (limited to 'src')
| -rw-r--r-- | src/amount.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h index 90e6b5aa8..a4c7764cd 100644 --- a/src/amount.h +++ b/src/amount.h @@ -51,6 +51,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; |