Skip to content

Conversation

@sterraf
Copy link
Contributor

@sterraf sterraf commented Feb 26, 2025

WIP addressing #605. Some notes:

  • PositiveCoin was not eliminated yet;
  • CborWrap is still unrevised;
  • (NonEmpty)Set and OrderPreservingProperties require further discussion.

The changes were propagated through the whole library.

} else {
None
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bit verbose, I'll try a slicker form afterwards (same repeated two times below in the same file)

@sterraf
Copy link
Contributor Author

sterraf commented Feb 28, 2025

@scarmuega There are some comments on the more nuanced decisions above. Please tell me if this is the right direction in order to keep up with the updated applying and to propagate to the rest of the codebase (u5c, for instance).

@scarmuega scarmuega mentioned this pull request Mar 6, 2025
7 tasks
@sterraf sterraf marked this pull request as ready for review March 12, 2025 15:13
&mut mk_alonzo_vk_wits_check_list(&tx_wits.vkeywitness, ShelleyMA(MissingVKWitness))?;
let tx_hash: &Vec<u8> = &Vec::from(tx_body.compute_hash().as_ref());
let tx_hash: &Vec<u8> = &Vec::from(tx_body.original_hash().as_ref());
println!("Tx hash: {:02x?}", tx_hash.clone());
Copy link
Member

Choose a reason for hiding this comment

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

is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The second line is not needed, thanks. It was there for debugging.

Comment on lines 581 to 587
if let Some(last_slot) = last_slot {
assert!(last_slot < block.slot());
// Taking care of Byron era up to the switch to protocol v.1.0
if last_slot <= 3780000 && last_slot % 21600 == 0 {
assert!(last_slot <= block.slot());
} else {
assert!(last_slot < block.slot());
}
Copy link
Member

Choose a reason for hiding this comment

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

Instead of relying on fixed slot boundaries, inspect the block and only apply the more relaxed check on EBBs.

@scarmuega scarmuega merged commit 91f979f into txpipe:main Mar 21, 2025
@github-project-automation github-project-automation bot moved this to ✅ Done in Development Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants