-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setting up tide-disco bindings #9
Conversation
<<I as NodeType>::BlockPayload as BlockPayload>::Metadata, | ||
); | ||
pub type BlockHash<I: NodeType> = Commitment<HashableBlock<I>>; | ||
impl<I: NodeType> Default for HashableBlock<I> { |
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 do we need default for this?
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 tide-disco type resolver needed it for extracting the parameter from TaggedBase64
for claim_block
. I didn't really take the time to dig into why...
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.
That's odd. I don't see any Default
requirement in https://github.com/EspressoSystems/tide-disco/blob/main/src/request.rs. Could you point me to where the requirement is coming from? I feel like this shouldn't be required (although it's not a big deal for now and does not have to block this PR)
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.
Looking at it again, I think it's because of the way I originally invoked .blob_param()
, which I changed before the push...
... but this should be gone once I update with Artemii's changes to HotShot.
|
||
#[derive(Clone, Debug, Snafu, Deserialize, Serialize)] | ||
#[snafu(visibility(pub))] | ||
pub enum BuildError { |
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.
Assuming we will change this to be more specific to the errors the builder can encounter, once we start implementing the traits?
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.
Yes.
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.
LGTM
<<I as NodeType>::BlockPayload as BlockPayload>::Metadata, | ||
); | ||
pub type BlockHash<I: NodeType> = Commitment<HashableBlock<I>>; | ||
impl<I: NodeType> Default for HashableBlock<I> { |
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.
That's odd. I don't see any Default
requirement in https://github.com/EspressoSystems/tide-disco/blob/main/src/request.rs. Could you point me to where the requirement is coming from? I feel like this shouldn't be required (although it's not a big deal for now and does not have to block this PR)
No description provided.