Skip to content

rpc: expose effective fee asset - #1577

Merged
tomt1664 merged 1 commit into
ElementsProject:masterfrom
Abdullah1738:feat/effective-fee-asset
Aug 12, 2026
Merged

rpc: expose effective fee asset#1577
tomt1664 merged 1 commit into
ElementsProject:masterfrom
Abdullah1738:feat/effective-fee-asset

Conversation

@Abdullah1738

Copy link
Copy Markdown
Contributor

Motivation

Elements accepts -feeasset=<asset-id> and uses the resulting policyAsset for transaction-fee and relay policy, while getsidechaininfo currently exposes only the consensus pegged_asset. An RPC client connected to an already-running node therefore cannot determine whether the operator selected a different effective fee asset.

Change

  • add an always-present fee_asset field to getsidechaininfo
  • define it as the effective policyAsset after startup argument processing
  • keep the existing pegged_asset field unchanged
  • add a wallet-independent functional test covering both the default and an explicit override

The change is additive and read-only. policyAsset is fixed before RPC service starts, so it does not introduce new mutable state or locking.

Local verification

  • rpc_sidechaininfo.py passed directly and through the functional test runner
  • rpc_tweakfedpeg.py --legacy-wallet passed
  • feature_dynafed.py --legacy-wallet passed
  • touched-file, include, Python UTF-8, functional-test-list, mypy, and dead-code checks passed

@delta1 delta1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 13d830f; tested locally

@tomt1664

Copy link
Copy Markdown
Member

tACK 13d830f

@tomt1664
tomt1664 merged commit 56a6cfa into ElementsProject:master Aug 12, 2026
7 checks passed
tomt1664 added a commit to tomt1664/elements that referenced this pull request Sep 3, 2026
…ive-fee-asset

rpc: expose effective fee asset
tomt1664 added a commit that referenced this pull request Sep 3, 2026
f80fb30 Merge #1589: simplicity: update subtree to abede47e (merge-script)
5b388c2 Merge pull request #1577 from Abdullah1738/feat/effective-fee-asset (Tom Trevethan)
48456e3 Add test that sighash midstate cache treats the SIGHASH_RANGEPROOF bit as part of its key (Tom Trevethan)
d47af63 Merge #1584: script: add and default to SIGHASH_ALL_WITH_RANGEPROOF for pre-taproot signing (merge-script)
7c23bd1 blind: reject empty surjection-target set in SurjectOutput (Byron Hambly)
3e11e03 blindpsbt: require genuine commitments in VerifyBlindValueProof (Byron Hambly)
99e9f25 blindpsbt: require both range bounds to match claim in VerifyBlindValueProof (Byron Hambly)
8a08453 validation: always validate and retain dynafed header block_height (Byron Hambly)
4309282 dynafed: require at least four-fifths approval for parameter transition (Byron Hambly)
6a49991 blindpsbt: refuse to blind a PSET output with no amount (Byron Hambly)
0ce3c24 blindpsbt: reject off-curve blinding pubkey before ECDH (Byron Hambly)
2391041 blindpsbt: return error instead of asserting on surjection proof failure (Byron Hambly)
6253d7e fix: range proof cache bind to asset and scriptpubkey (Byron Hambly)
3d7134f Merge #1593: Fix RPC return errors for psbt and invalid rangeproofs (merge-script)

Pull request description:

ACKs for top commit:
  delta1:
    ACK f80fb30; tested locally

Tree-SHA512: 42995e5b4842ce9694d9d5d30764230b774db24cda40d825742a174d564761e725a8323362404ee9653495936ab850c9933075b7ad924caa73768d0980bcbf96
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