Fix #2125 (ETH status bar display); Bump LibP2P

This commit is contained in:
Zahary Karadjov 2020-12-01 20:08:55 +02:00 committed by zah
parent 3e4b49462b
commit 4feb0a308e
2 changed files with 5 additions and 2 deletions

View File

@ -895,7 +895,10 @@ func formatGwei(amount: uint64): string =
result = $eth
if remainder != 0:
result.add '.'
result.add $remainder
let remainderStr = $remainder
for i in remainderStr.len ..< 9:
result.add '0'
result.add remainderStr
while result[^1] == '0':
result.setLen(result.len - 1)

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit b4738d723ceefa3007c7d8f16d17755a661ee50b
Subproject commit d1c689e5abca4f679a5e2deda34047f7ecd4cd8b