From 4feb0a308e2a163300a337d5467ebe119adb6ca8 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 1 Dec 2020 20:08:55 +0200 Subject: [PATCH] Fix #2125 (ETH status bar display); Bump LibP2P --- beacon_chain/nimbus_beacon_node.nim | 5 ++++- vendor/nim-libp2p | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 6d0511012..5c189f81a 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -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) diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index b4738d723..d1c689e5a 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit b4738d723ceefa3007c7d8f16d17755a661ee50b +Subproject commit d1c689e5abca4f679a5e2deda34047f7ecd4cd8b