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

BlockMetadataResponse 2.0 update #700

Closed

Conversation

thibault-martinez
Copy link
Member

No description provided.

Pending,
// Confirmed with the first level of knowledge.
Confirmed,
// Included and cannot be reverted anymore.

Choose a reason for hiding this comment

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

Suggested change
// 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"))]

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

Choose a reason for hiding this comment

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

Weird?

Copy link
Contributor

Choose a reason for hiding this comment

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

very weird!

Thoralf-M added a commit to Thoralf-M/iota-sdk that referenced this pull request Aug 14, 2023
@Thoralf-M Thoralf-M closed this Aug 15, 2023
@thibault-martinez thibault-martinez deleted the block-metadata branch August 17, 2023 10:04
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.

4 participants