-
Notifications
You must be signed in to change notification settings - Fork 72
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
IF: Unification: Deprecate proposal and new_block messages #1910
Comments
Part 1/2 of this issue (remove new block message) is addressed by #1919 For part 2/2 (remove proposal message), my current idea is:
This guarantees that the unit tests keep working with minimal modifications (since the unit tests don't have Then:
Does this look like a good idea? |
It sounds good. Shoud |
I'm fiddling with this here and I think it is still called a "message", as that's how it's used in the unit tests. I am not sure if this struct is what's actually sent to the I think that after the prototype, the unit tests are going to change significantly. I am not sure we will be emulating the network in unit tests going forward. My instinct would be to write tests of the "integration" type, that is, start multiple nodeos processes to test networking. For this to work with IF we may need to expose some extra test APIs. But that would allow us to wipe all these messaging concepts that we are keeping in the prototype to ensure the whole thing can be validated very quickly and we can iterate fast (all the unit tests take 3 seconds to run). |
We do not need the new_block message anymore. Just get rid of it.
Remove proposal network message and instead generate a proposal to incorporate into qc_chain by generating one from thesigned_block
network message. We need to extract the relevant proposal information from thesigned_block
. Right now all that is needed is proposal it builds off of. This can be identified using theprevious
field of thesigned_block
. We can have the proposal ID be the block ID now to make this identification easy.EDIT: We don't need to remove the proposal network message as part of this issue since we will make more significant changes soon that makes that work obsolete.
The text was updated successfully, but these errors were encountered: