[bisq-network/bisq] Add rpc method 'getfundingaddresses' (#4299)
Stan
notifications at github.com
Thu Jun 18 19:21:08 UTC 2020
@ghubstan commented on this pull request.
> +
+ // Iterate the list of Tuple3<AddressString, Balance, NumConfirmations> objects
+ // and build the formatted info string.
+ StringBuilder addressInfoBuilder = new StringBuilder();
+ addrBalanceConfirms.forEach(a -> {
+ var btcBalance = formatSatoshis.apply(a.second);
+ var numConfirmations = getNumConfirmationsForMostRecentTransaction(a.first);
+ String addressInfo = "" + a.first
+ + " balance: " + format("%13s", btcBalance)
+ + ((a.second > 0) ? (" confirmations: " + format("%6d", numConfirmations)) : "")
+ + "\n";
+ addressInfoBuilder.append(addressInfo);
+ });
+
+ return addressInfoBuilder.toString().trim();
+ }
Resolved in PR [4322]( https://github.com/bisq-network/bisq/pull/4322).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4299#discussion_r442448945
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200618/84644cff/attachment.html>
More information about the bisq-github
mailing list