[bisq-network/bisq] Dao: Add handler for republishing all dao governance data, improve vote result handling (#2363)
Manfred Karrer
notifications at github.com
Sun Feb 3 19:54:59 UTC 2019
ManfredKarrer commented on this pull request.
> + } else {
+ log.error("Adding of proposalPayload to P2P network failed. proposalTxId={}", txId);
+ }
+ }, delay, TimeUnit.MILLISECONDS);
+ });
+
+ ObservableList<BlindVotePayload> blindVotePayloads = blindVoteListService.getBlindVotePayloads();
+ blindVotePayloads
+ .forEach(blindVotePayload -> {
+ // We want a random delay between 0.1 and 30 sec. depending on the number of items
+ int delay = Math.max(100, Math.min(30_000, new Random().nextInt(blindVotePayloads.size() * 500)));
+ UserThread.runAfter(() -> {
+ boolean success = p2PService.addPersistableNetworkPayload(blindVotePayload, true);
+ String txId = blindVotePayload.getBlindVote().getTxId();
+ if (success) {
+ log.warn("We received a RepublishGovernanceDataRequest and re-published a blindVotePayload to " +
Ah, I see now, its at each success case, thats definitely too much. Will fix it in next PR.
--
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/2363#discussion_r253316586
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190203/ae5d702c/attachment.html>
More information about the bisq-github
mailing list