aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2019-08-20 09:58:35 -0400
committerGregory Sanders <gsanders87@gmail.com>2019-10-03 14:03:27 -0400
commit6a51f7951716d6d6fc0f9b56028f3a0dd02b61c8 (patch)
tree3f5666c9f0821de16377da5bb355c6f2529a464e /src/policy
parent8e59af55aaf1b196575084bce2448af02d97d745 (diff)
Disallow implicit conversion for CFeeRate constructor
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/feerate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/feerate.h b/src/policy/feerate.h
index 85d7d22b4f..d081f2ce8e 100644
--- a/src/policy/feerate.h
+++ b/src/policy/feerate.h
@@ -25,7 +25,7 @@ public:
/** Fee rate of 0 satoshis per kB */
CFeeRate() : nSatoshisPerK(0) { }
template<typename I>
- CFeeRate(const I _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) {
+ explicit CFeeRate(const I _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) {
// We've previously had bugs creep in from silent double->int conversion...
static_assert(std::is_integral<I>::value, "CFeeRate should be used without floats");
}