Skip to content

Conversation

@scarmuega
Copy link
Member

No description provided.

@scarmuega scarmuega changed the title chore: Use produced / consumed semantics from Pallas chore: Use produced / consumed semantic from Pallas Sep 11, 2022
Copy link
Member

@rvcas rvcas left a comment

Choose a reason for hiding this comment

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

🔥

@scarmuega scarmuega merged commit 13889c1 into main Sep 12, 2022
@scarmuega scarmuega deleted the chore/use-produced-consumed branch September 12, 2022 01:15
Comment on lines +141 to 142
for (idx, output) in tx.produces().iter().enumerate() {
let key: IVec = format!("{}#{}", tx.hash(), idx).as_bytes().into();
Copy link
Contributor

@jmhrpr jmhrpr Sep 18, 2022

Choose a reason for hiding this comment

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

This is a bug: if the Tx is invalid then a UTxO using the collateral return TxOut is created but the TxIn for the UTxO is defined as having the index |txouts|, that is the collateral return UTxO is given the next available index after the number of txouts contained in the transaction, but the current implementation gives it the index 0. This affects the UTxO reducer as well.

Will PR fix.

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