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

Use default p2a anchor #395

Closed
2 tasks
ekrembal opened this issue Jan 9, 2025 · 0 comments · Fixed by #407
Closed
2 tasks

Use default p2a anchor #395

ekrembal opened this issue Jan 9, 2025 · 0 comments · Fixed by #407
Assignees

Comments

@ekrembal
Copy link
Member

ekrembal commented Jan 9, 2025

Issue Description

With Bitcoin Core 28.0, a special anchor output type was introduced that can have a 240-sat dust output:

    TxOut {
        value: Amount::from_sat(240),
        script_pubkey: ScriptBuf::from_hex("51024e73").unwrap(),
    };

Now, with V3 transactions, we can set transaction fees to 0, add a 240-sat anchor output, and use TRUC.
Note that transactions should not exceed 40k bytes. See: 4. A TRUC transaction cannot have a sigop-adjusted virtual size larger than 10,000 vB. [12]

We should fit assert transactions to this limit and assert begin tx must not have outputs more than 10000/43=230.

  • Get rid of min relay fee constants
  • Update the anchor output constant by setting DUST_VALUE to 240; we can update this later to 0 with Bitcoin Core 29.0 (see: PR #30239)
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 a pull request may close this issue.

2 participants