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

Make all network data and messages deterministic #612

Conversation

HenrikJannsen
Copy link
Contributor

No description provided.

…s byte arrays of payload and could fail otherwise
…ave deterministic behaviour.

The proof or work check compares the payload bytes and not deterministic sorting in collections would cause random failures.
We use generic sorting of the byte array of the serialized data.
Copy link
Contributor

@alvasw alvasw left a comment

Choose a reason for hiding this comment

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

utACK

@alvasw alvasw merged commit 91604bb into bisq-network:main Dec 22, 2022
@HenrikJannsen HenrikJannsen deleted the make_all_network_data_and_messages_deterministic branch December 29, 2022 19:50
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