Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dao: Add handler for republishing all dao governance data, improve vote result handling #2363

Conversation

ManfredKarrer
Copy link
Contributor

No description provided.

@ManfredKarrer
Copy link
Contributor Author

@sqrrm I will rebase after i merged master with the other 2 PRs...

@ManfredKarrer ManfredKarrer changed the title Dao: add resets all data handler, improve vote result handling Dao: add handler for republishing all dao governancen data, improve vote result handling Feb 3, 2019
@ManfredKarrer ManfredKarrer changed the title Dao: add handler for republishing all dao governancen data, improve vote result handling Dao: Add handler for republishing all dao governance data, improve vote result handling Feb 3, 2019
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

The comments on log level stand but it's just refactoring so can be tended to in another PR

boolean success = p2PService.addPersistableNetworkPayload(proposalPayload, true);
String txId = proposalPayload.getProposal().getTxId();
if (success) {
log.warn("We received a RepublishGovernanceDataRequest and re-published a proposalPayload to " +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this shouldn't be warning level log

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes was also wondering. But it make it more visible if that occurres so that anyone can see if any peer is missing data. Basically the P2P network should be reliable enough to not cause that.

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 " +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, I don't think warning level is right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see now, its at each success case, thats definitely too much. Will fix it in next PR.

@ManfredKarrer ManfredKarrer merged commit 7741134 into bisq-network:master Feb 3, 2019
@ManfredKarrer ManfredKarrer deleted the dao-fix-vote-result-with-permutated-blindvotelist branch February 3, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants