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

QGB Orchestrator only signs if part of valset #523

Merged

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Jul 5, 2022

Closes #406 #480

@rach-id rach-id added the C: QGB label Jul 5, 2022
@rach-id rach-id self-assigned this Jul 5, 2022
@rach-id rach-id marked this pull request as draft July 5, 2022 02:26
@rach-id
Copy link
Member Author

rach-id commented Jul 5, 2022

depends on #519

@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2022

Codecov Report

Merging #523 (06c0d95) into qgb-integration (458b6b2) will increase coverage by 0.79%.
The diff coverage is 22.22%.

@@                 Coverage Diff                 @@
##           qgb-integration     #523      +/-   ##
===================================================
+ Coverage            11.72%   12.52%   +0.79%     
===================================================
  Files                   65       56       -9     
  Lines                10881     9680    -1201     
===================================================
- Hits                  1276     1212      -64     
+ Misses                9515     8385    -1130     
+ Partials                90       83       -7     
Impacted Files Coverage Δ
e2e/qgb/qgb_network.go 0.00% <0.00%> (ø)
e2e/qgb/test_commons.go 0.00% <ø> (ø)
x/qgb/keeper/hooks.go 34.61% <ø> (+2.47%) ⬆️
x/qgb/keeper/keeper_data_commitment_confirm.go 42.85% <ø> (ø)
x/qgb/keeper/keeper_valset.go 32.00% <0.00%> (-7.51%) ⬇️
x/qgb/keeper/msg_server.go 0.00% <0.00%> (ø)
x/qgb/keeper/query_attestation.go 0.00% <ø> (ø)
x/qgb/keeper/query_general.go 0.00% <0.00%> (ø)
x/qgb/keeper/query_valset.go 0.00% <ø> (ø)
x/qgb/types/abi_consts.go 69.23% <ø> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 458b6b2...06c0d95. Read the comment docs.

@rach-id rach-id force-pushed the orch_only_sign_if_part_of_valset branch from 06c0d95 to e0a388e Compare July 11, 2022 11:20
# Conflicts:
#	e2e/qgb/orchestrator_test.go
#	e2e/qgb/qgb_network.go
#	x/qgb/orchestrator/orchestrator.go
@rach-id rach-id requested a review from evan-forbes July 11, 2022 11:24
@rach-id rach-id marked this pull request as ready for review July 11, 2022 11:24
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

great work! 🥇

x/qgb/keeper/msg_server.go Show resolved Hide resolved
var previousValset *types.Valset
// TODO add test for case nonce == 1.
if msg.Nonce == 1 {
// if the msg.Nonce == 1, the current valset should sign the first valset
Copy link
Member

Choose a reason for hiding this comment

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

we might want to add to this comment as to why we do this.

x/qgb/handler_test.go Show resolved Hide resolved
x/qgb/keeper/msg_server.go Outdated Show resolved Hide resolved
x/qgb/keeper/msg_server.go Outdated Show resolved Hide resolved
@rach-id rach-id merged commit 0ed87bb into celestiaorg:qgb-integration Jul 12, 2022
@rach-id rach-id deleted the orch_only_sign_if_part_of_valset branch July 12, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
3 participants