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

Preparations for new trade protocol #6800

Conversation

HenrikJannsen
Copy link
Collaborator

@HenrikJannsen HenrikJannsen commented Aug 9, 2023

This is a preparation PR for the new trade protocol changes (bisq-network/proposals#421).

As we need more request/response roundtrips it is better to implement it with new protocol classes. It also lowers the risks for the current protocol as it will have no changes in those protocol classes.

This PR contains mainly refactorings and support for detecting the version 5 trade protocol.

The new protocol classes are just plain copies at that moment.

…essage message, NodeAddress peer)` method with a super call to the concrete seller classes to make the protocol flow more transparent.

Remove comments

Signed-off-by: HenrikJannsen <[email protected]>
… static field TRADE_PROTOCOL_VERSION

Signed-off-by: HenrikJannsen <[email protected]>
…ersion5Activated method. Set tradeProtocolVersion to 5 after activation date.

Maker will republish their offers after version has increased. Takers who have not updated cannot take such offers.

Signed-off-by: HenrikJannsen <[email protected]>
…ocol to BaseSellerProtocol

Signed-off-by: HenrikJannsen <[email protected]>
…otocol and BaseSellerProtocol

Add v5 classes.
Make BaseBuyerProtocol and BaseSellerProtocol package private.

Signed-off-by: HenrikJannsen <[email protected]>
@alejandrogarcia83 alejandrogarcia83 changed the base branch from master to trade_protocol_v5 August 9, 2023 16:09
@HenrikJannsen HenrikJannsen deleted the preparations_for_new_trade_protocol branch August 11, 2023 09:10
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.

None yet

1 participant