-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
@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. |
c4c380f
to
7377f27
Compare
pkg/mempool/simplemempool/internal/parts/formbatches/formbatches.go
Outdated
Show resolved
Hide resolved
depends on #164 |
76c7949
to
88166b4
Compare
e0af2d5
to
f15c806
Compare
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.
I have no idea why the linter in the CI fails. It works locally on my laptop. |
There was a problem hiding this 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.
Actually, the comments can easily be fixed. Sergey had the same problem and this is the fix: 888d9cc |
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.