From 6186ee6269491a21428e9ef4229ac1d3f95c9fae Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Sat, 7 Mar 2020 19:51:36 +0000 Subject: [PATCH] Change Amount Debug impl to BTC with 8 decimals --- src/util/amount.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/amount.rs b/src/util/amount.rs index 1bbb6ec6f7..025078fc1c 100644 --- a/src/util/amount.rs +++ b/src/util/amount.rs @@ -463,7 +463,7 @@ impl Ord for Amount { impl fmt::Debug for Amount { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "Amount({} satoshi)", self.as_sat()) + write!(f, "Amount({:.8} BTC)", self.as_btc()) } } @@ -807,7 +807,7 @@ impl Ord for SignedAmount { impl fmt::Debug for SignedAmount { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "SignedAmount({} satoshi)", self.as_sat()) + write!(f, "SignedAmount({:.8} BTC)", self.as_btc()) } }