You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pczt_validate refuses ZIP 2009 fees from block 3,590,000 #32
On main (317d790), pczt_validate_inner refuses a fee below 5,000 × max(2, logical actions): 10,000 for a two-action transaction (crates/webzjs-keys/src/pczt_describe.rs, MARGINAL_FEE and the min_fee check). ZIP 2009 lowers the marginal fee to 1,000 from block 3,590,000 on Mainnet, expected around 19 November, and from 4,465,026 on Testnet, which has passed. From that height, a PCZT that pays the new conventional fee (2,000 for two actions) is refused with "fee 2000 is below the ZIP-317 conventional minimum 10000".
#27 sets the floor to 1,000, which fixes this, but it has had changes requested since 13 November. Two notes:
The one-line floor change could land on its own now, so a Snap user can sign ZIP 2009 fees as soon as wallets start paying them.
Accepting 1,000 per action before the switch moves no value away from the user; at worst the transaction pays less than the conventional fee of the time and may not be relayed. If you want the floor to follow the height, ZIP 2009 decides by the block the transaction is expected to be mined in, and the PCZT's expiry height (when set) is the last block it can be mined in.
Should I open the one-line change with a test at 2,000 for two actions?
It adds one fixture made by generate_fixtures, generated last so the existing fixtures stay byte-identical: an Ironwood payment on the test network of 98,000 from a 100,000 note, so a fee of 2,000. The bundle has one logical action (the extra action the builder adds is not counted), so the minimum is the two-action grace: 2,000 at the ZIP 2009 marginal fee. tests/zip2009_fee.rs checks that pczt_validate_inner accepts it.
git clone https://github.com/deegalabs/WebZjs && cd WebZjs && git checkout 0c8bf4cfa6018a71e34fd030de6feda4a9d62a72
cargo test -p webzjs-keys --test zip2009_fee fails at this commit with fee 2000 is below the ZIP-317 conventional minimum 10000.
With MARGINAL_FEE set to 1_000 in crates/webzjs-keys/src/pczt_describe.rs (a local change, not in the commit), it passes, and cargo test -p webzjs-keys --test spoof_pczt still passes (10 tests).
Activity
danielgorgonha commentedon Nov 24, 2026
The test: deegalabs@0c8bf4c (one commit on top of main at 317d790).
It adds one fixture made by
generate_fixtures, generated last so the existing fixtures stay byte-identical: an Ironwood payment on the test network of 98,000 from a 100,000 note, so a fee of 2,000. The bundle has one logical action (the extra action the builder adds is not counted), so the minimum is the two-action grace: 2,000 at the ZIP 2009 marginal fee.tests/zip2009_fee.rschecks thatpczt_validate_inneraccepts it.git clone https://github.com/deegalabs/WebZjs && cd WebZjs && git checkout 0c8bf4cfa6018a71e34fd030de6feda4a9d62a72cargo test -p webzjs-keys --test zip2009_feefails at this commit withfee 2000 is below the ZIP-317 conventional minimum 10000.MARGINAL_FEEset to1_000incrates/webzjs-keys/src/pczt_describe.rs(a local change, not in the commit), it passes, andcargo test -p webzjs-keys --test spoof_pcztstill passes (10 tests).🤖 Generated with Claude Code