This commit is contained in:
ncoelho 2021-02-17 15:27:11 +01:00 committed by Overtorment
parent 989b195ba5
commit 36ae5c5f4e

View File

@ -31,7 +31,7 @@ function updateLightning() {
let ascii_length1 = channel.local_balance * divider; let ascii_length1 = channel.local_balance * divider;
let ascii_length2 = channel.remote_balance * divider; let ascii_length2 = channel.remote_balance * divider;
channel.local = (Math.round(ascii_length1)); channel.local = (Math.round(ascii_length1));
channel.remote = (max - (Math.round(ascii_length2))); channel.remote = (max - (Math.round(ascii_length1)));
channel.total = ((channel.local) + (channel.remote); channel.total = ((channel.local) + (channel.remote);
channel.capacity_btc = channel.capacity / 100000000; channel.capacity_btc = channel.capacity / 100000000;
channel.name = pubkey2name[channel.remote_pubkey]; channel.name = pubkey2name[channel.remote_pubkey];