File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1596,6 +1596,7 @@ impl<S: MutinyStorage> Node<S> {
1596
1596
. into_iter ( )
1597
1597
. map ( |b| b. claimable_amount_satoshis ( ) )
1598
1598
. sum :: < u64 > ( )
1599
+ * 1000
1599
1600
< send_msats
1600
1601
{
1601
1602
// Channels exist but not enough capacity
@@ -1669,7 +1670,8 @@ impl<S: MutinyStorage> Node<S> {
1669
1670
. get_claimable_balances ( & [ ] )
1670
1671
. into_iter ( )
1671
1672
. map ( |b| b. claimable_amount_satoshis ( ) )
1672
- . sum ( ) ;
1673
+ . sum :: < u64 > ( )
1674
+ * 1000 ;
1673
1675
log_debug ! (
1674
1676
self . logger,
1675
1677
"current channel details: {:?}" ,
@@ -1821,6 +1823,7 @@ impl<S: MutinyStorage> Node<S> {
1821
1823
. into_iter ( )
1822
1824
. map ( |b| b. claimable_amount_satoshis ( ) )
1823
1825
. sum :: < u64 > ( )
1826
+ * 1000
1824
1827
< amt_msats
1825
1828
{
1826
1829
// Channels exist but not enough capacity
@@ -1921,7 +1924,8 @@ impl<S: MutinyStorage> Node<S> {
1921
1924
. get_claimable_balances ( & [ ] )
1922
1925
. into_iter ( )
1923
1926
. map ( |b| b. claimable_amount_satoshis ( ) )
1924
- . sum ( ) ;
1927
+ . sum :: < u64 > ( )
1928
+ * 1000 ;
1925
1929
Err ( map_sending_failure (
1926
1930
error,
1927
1931
amt_msats,
Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ impl<S: MutinyStorage> NodeManager<S> {
964
964
} ;
965
965
966
966
let nodes = self . nodes . read ( ) . await ;
967
- let lightning_msats : u64 = nodes
967
+ let lightning_sats : u64 = nodes
968
968
. iter ( )
969
969
. flat_map ( |( _, n) | {
970
970
n. chain_monitor
@@ -999,7 +999,7 @@ impl<S: MutinyStorage> NodeManager<S> {
999
999
Ok ( NodeBalance {
1000
1000
confirmed : ( onchain. confirmed + onchain. trusted_pending ) . to_sat ( ) ,
1001
1001
unconfirmed : ( onchain. untrusted_pending + onchain. immature ) . to_sat ( ) ,
1002
- lightning : lightning_msats / 1_000 ,
1002
+ lightning : lightning_sats ,
1003
1003
force_close,
1004
1004
} )
1005
1005
}
You can’t perform that action at this time.
0 commit comments