-
Notifications
You must be signed in to change notification settings - Fork 41
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
BlockMetadataResponse 2.0 update #700
BlockMetadataResponse 2.0 update #700
Conversation
a1a4396
to
187caed
Compare
4c47267
to
e92ba4d
Compare
Pending, | ||
// Confirmed with the first level of knowledge. | ||
Confirmed, | ||
// Included and cannot be reverted anymore. |
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.
// Included and cannot be reverted anymore. | |
// Included and can no longer be reverted. |
@@ -141,22 +160,21 @@ pub enum LedgerInclusionState { | |||
)] | |||
pub struct BlockMetadataResponse { | |||
pub block_id: BlockId, | |||
pub parents: Vec<BlockId>, | |||
pub is_solid: bool, | |||
pub strong_parents: Vec<BlockId>, | |||
#[cfg_attr(feature = "serde", serde(skip_serializing_if = "Option::is_none"))] |
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.
Can we add default
to all of these?
pub enum ConflictReason { | ||
/// The block has no conflict. | ||
None = 0, | ||
/// The referenced Utxo was already spent. | ||
InputUtxoAlreadySpent = 1, | ||
/// The referenced Utxo was already spent while confirming this milestone. | ||
/// TODO weird |
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.
Weird?
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.
very weird!
No description provided.