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

Refactor dispute validation #6402

Merged
merged 17 commits into from
Nov 3, 2022

Conversation

HenrikJannsen
Copy link
Collaborator

@HenrikJannsen HenrikJannsen commented Nov 3, 2022

Technical refactoring of validation code.

This is a preparation for the implementation of bisq-network/proposals#390 and another intermediary PR with additional validations and further refactorings.

Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
…the dispute domain.

Move AddressException, NodeAddressException and DisputeReplayException to DisputeValidation.
Use DisputeValidation.ValidationException as type for DisputeManager.validationExceptions.
Remove Nullable annotation for dispute field in those exceptions.
Remove null checks when those DisputeValidation.ValidationException are used.
…n out of TradeDataValidation

Refactor donationAddress validation out to new method
Rename addressAsString to delayedPayoutTxOutputAddressAsString
Recreate delayedPayoutTxOutputAddress at new validateDonationAddress method from relevant data

Signed-off-by: HenrikJannsen <[email protected]>
Add call to validateDonationAddress at client calling validateDelayedPayoutTx

Signed-off-by: HenrikJannsen <[email protected]>
Remove dispute as unused param
Remove redundant methods

Signed-off-by: HenrikJannsen <[email protected]>
…got added to support not updated nodes. Now there are none of such nodes.

Signed-off-by: HenrikJannsen <[email protected]>
Remove null check for dispute

Signed-off-by: HenrikJannsen <[email protected]>
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

utACK

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

@sqrrm sqrrm merged commit 212cd77 into bisq-network:master Nov 3, 2022
@boring-cyborg
Copy link

boring-cyborg bot commented Nov 3, 2022

Awesome work, congrats on your first merged pull request!

@HenrikJannsen HenrikJannsen deleted the refactor-dispute-validation branch November 3, 2022 17:12
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