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

Disable FF with amount related conditions and relative timelocks #942

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

matt-o-how
Copy link
Contributor

No description provided.

Copy link

coveralls-official bot commented Feb 24, 2025

Pull Request Test Coverage Report for Build 13520590624

Details

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 84.32%

Totals Coverage Status
Change from base Build 13334739781: 0.007%
Covered Lines: 13584
Relevant Lines: 16110

💛 - Coveralls

Rigidity
Rigidity previously approved these changes Feb 24, 2025
Copy link
Contributor

@Rigidity Rigidity left a comment

Choose a reason for hiding this comment

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

Looks fine to me

Comment on lines 117 to 118
| Condition::AssertHeightRelative(_)
| Condition::AssertSecondsRelative(_) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

These two should not clear the ELIGIBLE_FOR_DEDUP flag, should they?

I believe you should also check AssertEphemeral here. It's considered a relative-timelock.

Also ASSERT_BEFORE_SECONDS_RELATIVE, ASSERT_BEFORE_HEIGHT_RELATIVE, ASSERT_MY_BIRTH_HEIGHT , ASSERT_MY_BIRTH_SECONDS. I think that's it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ephemeral and Before conditions are not affected by the fastforward - good catch with the birth height and birth seconds though, I've added those now

@@ -4070,7 +4091,8 @@ fn test_impossible_constraints_single_spend(
} else {
// we don't expect any error
let (a, conds) = cond_test(test).unwrap();

let banned_list = [ASSERT_SECONDS_RELATIVE, ASSERT_HEIGHT_RELATIVE];
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this list needs to be longer

Copy link
Contributor

@arvidn arvidn left a comment

Choose a reason for hiding this comment

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

do we already update the solution with the new coin amount when we fast-forward?

@matt-o-how matt-o-how requested a review from arvidn February 26, 2025 15:01
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.

3 participants