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

MacroSync #16

Merged
merged 4 commits into from
Nov 6, 2019
Merged

MacroSync #16

merged 4 commits into from
Nov 6, 2019

Conversation

paberr
Copy link
Member

@paberr paberr commented Nov 4, 2019

Implements the MacroSync protocol into the client.
I haven't integrated it with the config though, since @jgraef changed the config builder in one of his branches completely and I didn't want to do the work twice.

For now, it always uses the full sync client and the behaviour shouldn't be any different from the current one.

The main two TODOs, for which I will open issues after having merged this PR are:

  • Integration into config builder.
  • When we receive epoch transactions, we should check that:
    • the transactions in the epoch transactions message are consecutive transactions in the proof and not just any subset,
    • consecutive epoch transactions messages align.
      Otherwise a client can send us any subset of the transactions and we will only find out that our vector doesn't give the correct hash when he is done sending us transactions.

blockchain-albatross/src/blockchain.rs Outdated Show resolved Hide resolved
blockchain-albatross/src/blockchain.rs Outdated Show resolved Hide resolved
blockchain-albatross/src/blockchain.rs Outdated Show resolved Hide resolved
blockchain-albatross/src/blockchain.rs Outdated Show resolved Hide resolved
blockchain-base/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@jgraef jgraef left a comment

Choose a reason for hiding this comment

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

Fix get_epoch_transactions.

@jgraef
Copy link
Contributor

jgraef commented Nov 6, 2019

Some are duplicate. I had close the browser and thought they were lost.

@paberr
Copy link
Member Author

paberr commented Nov 6, 2019

Fix get_epoch_transactions.

Doesn't need fixing, but I will take care of the style issues.

jgraef
jgraef previously approved these changes Nov 6, 2019
Copy link
Contributor

@jgraef jgraef left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@jgraef jgraef left a comment

Choose a reason for hiding this comment

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

Stil 👍 also after rebasing.

@jgraef jgraef merged commit ea24cfa into albatross Nov 6, 2019
@jgraef jgraef deleted the paberr/macrosync branch November 6, 2019 22:28
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

2 participants