-
Notifications
You must be signed in to change notification settings - Fork 87
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
Centralized Blobs #716
Centralized Blobs #716
Conversation
@@ -102,6 +101,7 @@ godfig = { path = "util/godfig" } | |||
movement-tracing = { path = "util/tracing" } | |||
syncup = { path = "protocol-units/syncing/syncup" } | |||
syncador = { path = "util/syncador" } | |||
bridge-grpc = { path = "protocol-units/bridge/grpc" } |
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.
The old place was better grouped with the other protocol-units/bridge crates.
@@ -102,6 +101,7 @@ godfig = { path = "util/godfig" } | |||
movement-tracing = { path = "util/tracing" } | |||
syncup = { path = "protocol-units/syncing/syncup" } |
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.
Then again, there's this one out of place as well.
} | ||
|
||
mod block { | ||
pub mod block { |
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.
Forgot about this one. It could be moved to a separate file as well, especially now that it's a public module (in its super module at least).
} | ||
|
||
#[cfg(test)] | ||
pub mod signers_serialization_test { |
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.
Why is this module public?
use super::*; | ||
|
||
#[test] | ||
fn test_signing_key() -> Result<(), anyhow::Error> { |
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 only tests the byte format of the signing key, why do we need the test for dependency functionality?
} | ||
} | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] |
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.
How do Serialize
and Deserialize
represent the enum? Should we add some attributes there?
} | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct InnerSignedBlobV1 { |
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.
The Inner
naming still pops up here.
} | ||
} | ||
|
||
pub mod celestia { |
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.
Could be in a separate file.
fn gc_mempool_transactions( | ||
&self, | ||
timestamp_threshold: u64, | ||
) -> impl Future<Output = Result<u64, anyhow::Error>> + Send + '_; | ||
) -> impl Future<Output = Result<(), anyhow::Error>> + Send + '_; |
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.
Why erase the logging we have just added in #709?
fn gc_mempool_transactions( | ||
&self, | ||
timestamp_threshold: u64, | ||
) -> impl Future<Output = Result<u64, anyhow::Error>> + Send + '_; | ||
) -> impl Future<Output = Result<(), anyhow::Error>> + Send + '_; |
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.
Why erase the logging we have just added in #709?
Summary
protocol-units
#604 , but signed.