Skip to content

Commit

Permalink
fix relayfee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
protonn committed Apr 25, 2017
1 parent d541b2e commit 9eefc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amount.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CFeeRate
CFeeRate(const CFeeRate& other) { nSatoshisPerK = other.nSatoshisPerK; }

CAmount GetFee(size_t size) const; // unit returned is satoshis
CAmount GetFeePerK() const { return GetFee(50000); } // satoshis-per-1000-bytes
CAmount GetFeePerK() const { return GetFee(1000); } // satoshis-per-1000-bytes

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; }
Expand Down

0 comments on commit 9eefc15

Please sign in to comment.