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

Simple mempool module prototype #144

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

xosmig
Copy link
Contributor

@xosmig xosmig commented Jul 18, 2022

The prototype expects that new transactions will be delivered to it by means of NewRequests events and stores them in an in-memory map. It uses hashes for transaction and batch IDs.
To support crash-recovery, persistent storage should be added for the transactions.

@xosmig
Copy link
Contributor Author

xosmig commented Jul 18, 2022

@matejpavlovic for integrating mempool into the chat demo, modifications need to be made to ISS. I think I'm not the right person to do these modifications as I don't know anything about the ISS implementation.

@xosmig xosmig force-pushed the mempool-prototype branch 3 times, most recently from c4c380f to 7377f27 Compare July 25, 2022 12:18
@xosmig
Copy link
Contributor Author

xosmig commented Aug 1, 2022

depends on #164

@xosmig xosmig force-pushed the mempool-prototype branch 2 times, most recently from 76c7949 to 88166b4 Compare August 2, 2022 20:49
@xosmig xosmig force-pushed the mempool-prototype branch 3 times, most recently from e0af2d5 to f15c806 Compare August 5, 2022 07:38
The prototype expects that new transactions will be delivered to
it by means of NewRequests events and stores them in an in-memory
map. It uses hashes for transaction and batch IDs.
To support crash-recovery, persistent storage should be added for
the transactions.
@xosmig
Copy link
Contributor Author

xosmig commented Aug 5, 2022

I have no idea why the linter in the CI fails. It works locally on my laptop.
It says that some files are not gofmted, but gofmt -l . outputs no files.

@xosmig
Copy link
Contributor Author

xosmig commented Aug 5, 2022

The linter complains about files that were not changed in this PR, so I will just ignore it.

image

Copy link
Contributor

@matejpavlovic matejpavlovic left a comment

Choose a reason for hiding this comment

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

Nice!
For the linter, it looks like it has a problem with indented text in comments.
But rather than modifying the comments. But I'd see that rather as a linter problem that is to be fixed later.

@matejpavlovic
Copy link
Contributor

Actually, the comments can easily be fixed. Sergey had the same problem and this is the fix: 888d9cc

@xosmig xosmig merged commit ce7cf14 into consensus-shipyard:main Aug 5, 2022
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