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

Shutter service #560

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open

Shutter service #560

wants to merge 57 commits into from

Conversation

blockchainluffy
Copy link
Contributor

No description provided.

@blockchainluffy blockchainluffy self-assigned this Nov 29, 2024
@blockchainluffy blockchainluffy force-pushed the shutter-service branch 2 times, most recently from 9225ac9 to d86f29f Compare December 16, 2024 13:25
@blockchainluffy blockchainluffy marked this pull request as ready for review December 16, 2024 17:00
Copy link
Contributor

@ulope ulope left a comment

Choose a reason for hiding this comment

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

Looks quite good.
Some comments below.

There's a lot of code duplication but as we discussed before that's fine for now.
I've added a session for our retreat to discuss removing duplication.

block_number bigint NOT NULL CHECK (block_number >= 0)
);

CREATE TABLE current_decryption_trigger(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't quite understand why it's "current" decryption trigger?
They don't seem to get deleted, wouldn't just decryption_trigger make more sense?

@@ -0,0 +1,53 @@
package shutterservice
Copy link
Contributor

Choose a reason for hiding this comment

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

The other keyper implementations all have keyper in their command name. I think we should keep that convention.

"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/metricsserver"
"github.com/shutter-network/rolling-shutter/rolling-shutter/p2p"
)

Copy link
Contributor

Choose a reason for hiding this comment

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

This is missing an assignment check to verify the structs actually satisfy the interface. See for example:

var (
_ configuration.Config = &Config{}
_ configuration.Config = &GnosisConfig{}
_ configuration.Config = &GnosisContractsConfig{}
)

var Definition db.Definition

func init() {
def, err := db.NewSQLCDefinition(files, "sql/", "shutterserviceKeyper", 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: In the gnosis impl keyper is lower case.

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.

3 participants