-
Notifications
You must be signed in to change notification settings - Fork 267
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
Remove valset/data commitment confirm logic from state machine #720
Remove valset/data commitment confirm logic from state machine #720
Conversation
Codecov Report
@@ Coverage Diff @@
## qgb-integration #720 +/- ##
===================================================
+ Coverage 11.09% 12.61% +1.51%
===================================================
Files 50 45 -5
Lines 8563 6446 -2117
===================================================
- Hits 950 813 -137
+ Misses 7518 5548 -1970
+ Partials 95 85 -10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Approved w/ a question
@@ -30,6 +28,8 @@ require ( | |||
require ( | |||
cosmossdk.io/errors v1.0.0-beta.7 | |||
cosmossdk.io/math v1.0.0-beta.2 | |||
github.com/cosmos/cosmos-sdk v0.0.0-00010101000000-000000000000 |
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.
[question] this version number seems odd, is it intended?
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.
it's certainly not. I am still investigating it
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.
this is probably coming from the conflicting cosmos-sdk and celestia-core versions.
I guess it will be fixed when we merge the cosmos-sdk QGB branch to the default one and we rebase on master.
Will merge for now and take a look on it later
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.
overall this is definitely headed in the correct direction, as it removes the state storing and querying, but I we might have removed a bit too much. Left some comments/questions
we still need to make sure we can create and submit the txs, and we might even want to emit an event (maybe not, this depends on the relayer design and if things like block explorers want to keep track of these things). (we could also potentially do these things in a different PR, but will leave it up to the author)
The only thing that needs removing is storing in the state
Orchestrators and relayers will be parsing the blocks. So, no need for events. However, I am happy to re-introduce and not delete until later. Let me know what you think |
currently blocked by celestiaorg/cosmos-sdk#276 which is blocked by celestiaorg/cosmos-sdk#279 |
I think you're right, since it would require running something that looks like a relayer (but doesn't actually relay) to know for sure, we can delete them. Presumably tho, given that delegators can get slashed if a validator is not signing properly, they will be interested in that info. We should definitely want to make it easy to monitor, so as long as we have some mechanism for that. (perhaps a third node, relayer, orchestrator, and a monitor) |
I don't see another way of monitoring besides parsing the blocks and checking if confirms are correct. And if we're parsing blocks, events won't be useful. |
yeah, same, I think you're right and we can delete them. We just have to keep this fact in mind and provide a way for people to monitor them is all |
I will create an issue for this 👍 |
ahh sorry, I was wrong on this, thought this was for merging the qgb branch into main lolol 🤦 |
Remove valset/data commitment confirm logic from state machine in preparation for merging the branch and implementing ADR 5: Reduce QGB state usage