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

Vote Reveal - Silent Fail #3758

Merged
merged 1 commit into from Feb 26, 2020
Merged

Vote Reveal - Silent Fail #3758

merged 1 commit into from Feb 26, 2020

Conversation

niyid
Copy link
Contributor

@niyid niyid commented Dec 6, 2019

Fixes #3408

The log below shows where the vote reveal failed silently as a result of insufficient wallet balance.

Oct-15 06:43:21.835 [JavaFX Application Thread] INFO  org.bitcoinj.wallet.Wallet: Completing send tx with 1 outputs totalling 0.00000596 BTC and a fee of 0.00 BTC/kB 
Oct-15 06:43:21.837 [JavaFX Application Thread] WARN  org.bitcoinj.wallet.Wallet: Insufficient value in wallet for send: needed 0.00001606 BTC more 
Oct-15 06:43:21.845 [JavaFX Application Thread] ERROR b.c.d.g.v.VoteRevealService: VoteRevealException{
     voteRevealTx=null,
     blindVoteTxId='3cf435e275b8e1518ea969fe90e0504bbed1d68135310b3c24546244fca90b5d',
     myVote=null
} bisq.core.dao.governance.votereveal.VoteRevealException: Exception at calling revealVote. 
Oct-15 06:43:24.448 [JavaFX Application Thread] INFO  b.c.d.m.DaoStateMonitoringService: Passed checkpoint Checkpoint {
     height=586920,
     hash=523aaad4e760f6ac6196fec1b3ec9a2f42e5b272
} 

@stale
Copy link

stale bot commented Jan 5, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the was:dropped label Jan 5, 2020
@chimp1984
Copy link
Contributor

Still relevant

@stale stale bot removed the was:dropped label Jan 6, 2020
@niyid
Copy link
Contributor Author

niyid commented Jan 7, 2020

Still relevant

Great. Awaiting review.

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK - Please see my comment. Would also be great if you could rebase your PR to master. Makes it easier for testing using the most up-to-date codebase.

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK - Please see my comment

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK

It does show it correctly when you start the app
Bildschirmfoto 2020-02-03 um 12 47 04
But it will show you now every time on startup without the chance of getting rid of it again.
I think it would be good to add a don't show again flag to this popup so the user can decide if he want to see the warning for this transaction vote reveal again.

@niyid niyid requested a review from ripcurlx February 3, 2020 15:15
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK

Did you try this out?
That won't work. It still would be shown each time as you need to check if the key was set before you open the popup. Also we don't want to ask once and hide all popups afterwards, we want to show it at least once for each different transaction failure. So that means you need to extend the key with the tx id.

@niyid niyid requested a review from ripcurlx February 3, 2020 16:16
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK

Formatting broken.

desktop/src/main/java/bisq/desktop/main/dao/DaoView.java Outdated Show resolved Hide resolved
@niyid niyid requested a review from ripcurlx February 3, 2020 17:20
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK - I think you checked in some changes for .idea/codeStyles/Project.xml by mistake.

@niyid niyid requested a review from ripcurlx February 4, 2020 14:47
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

NACK

Please see my comments. Also please rebase your PR so it is easier to test locally and I think it will remove one necessary change you did to the editorconfig file. Actually my checkstyle configuration should now catch this issues, but somehow running a recheck didn't do the trick yet.

@niyid niyid requested a review from ripcurlx February 6, 2020 17:10
exceptions on failed vote reveal transaction - fixes issue 3408. Allow
"do not show again".
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

ACK

Tested it on local Regtest and it finally does what it is intended to do.

@ripcurlx ripcurlx merged commit a6d874c into bisq-network:master Feb 26, 2020
@ripcurlx ripcurlx added this to the v1.2.8 milestone Feb 26, 2020
@sqrrm
Copy link
Member

sqrrm commented Feb 26, 2020

This PR touches core DAO code so it should be ACKed by manfred according to our merge rules.

@ripcurlx
Copy link
Contributor

This PR touches core DAO code so it should be ACKed by manfred according to our merge rules.

Not sure if a ACK by @ManfredKarrer is necessary in that case as it just surfaces an exception thrown during the vote reveal process. But in any case I mentioned now Manfred if he wants to give it an ACK as well.

@sqrrm
Copy link
Member

sqrrm commented Feb 26, 2020

I think sticking to this rule would be good.

@ripcurlx
Copy link
Contributor

Ok - I'll ping @ManfredKarrer for an ACK.

@chimp1984
Copy link
Contributor

NACK. See last comment. I would suggest to revert that PR and be more critical on dao package changes.

@ripcurlx ripcurlx removed this from the v1.2.8 milestone Mar 9, 2020
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.

Vote Reveal - Silent Fail
4 participants