Skip to content

Conversation

@sanket1729
Copy link
Member

Lifting should fail for miniscripts/descriptors

  • timelock combination
  • branch exceeds resource limits

Lifting fails for concrete policies:

  • timelock combination
  • If there is a branch that can exceed resource limits, our compiler would not create miniscripts anyway. And it general, it is difficult to check the resource limit checks without compiling.

fn cause(&self) -> Option<&error::Error> {
None
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I just checked, and if you replace this whole block with

impl error::Error for LiftError {}

it compiles even on 1.29.0.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ack e7eeb6c

@apoelstra apoelstra merged commit b342833 into rust-bitcoin:master Nov 30, 2020
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.

2 participants