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

Remove the default unpaid action limit #6899

Closed
daira opened this issue Jun 12, 2024 · 3 comments · Fixed by #6900
Closed

Remove the default unpaid action limit #6899

daira opened this issue Jun 12, 2024 · 3 comments · Fixed by #6900
Labels
A-block-creation Area: Block creation and submission by miners

Comments

@daira
Copy link
Contributor

daira commented Jun 12, 2024

The allowance for unpaid actions was not intended to be useful long-term. It was just a stopgap to allow us to deploy partial enforcement of ZIP 317 fees sooner, without that being blocked by "all" wallets supporting them for transaction creation.

It was understood when designing this mechanism that attackers would adapt to it, which they have, making the allowance essentially useless to the few legitimate users using wallets that are not paying these fees.

To avoid spending time on the changes to zcashd, I suggest just making DEFAULT_BLOCK_UNPAID_ACTION_LIMIT zero, which is a one-line change [1]. My impression is that mining pools do not override the default.

[1] with ~1300 lines of test changes (#6900). 😭

@daira daira added the A-block-creation Area: Block creation and submission by miners label Jun 12, 2024
daira added a commit to daira/zcash that referenced this issue Jun 12, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
@str4d str4d added this to the Release 5.10.0 milestone Jun 12, 2024
daira added a commit to daira/zcash that referenced this issue Jun 12, 2024
fixes zcash#6899 (see that issue for rationale)

Also add the missing release notes for zcashd v5.9.1.

Signed-off-by: Daira-Emma Hopwood <[email protected]>
daira added a commit to daira/zcash that referenced this issue Jun 12, 2024
fixes zcash#6899 (see that issue for rationale)

Also add the missing release notes for zcashd v5.9.1.

Signed-off-by: Daira-Emma Hopwood <[email protected]>
@str4d
Copy link
Contributor

str4d commented Jun 13, 2024

Mempool metrics from zcashd for the past 4 days show a resumption in this behaviour:

image

Spot-checking the contents of the mempool just now, every spam transaction has 50 logical actions:

  • 48 transparent outputs.
  • 1 Sapling spend funding the transaction.
  • 2 Sapling outputs (probably because the transaction builders force this).

So yes, they are directly targeting the current default unpaid action limit, and dropping the default to zero would resolve this.

@gades
Copy link

gades commented Jun 14, 2024

Will reject it accepting tx to mempool and don’t do relay tx? Looks like no

daira added a commit to daira/zcash that referenced this issue Jun 23, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
daira added a commit to daira/zcash that referenced this issue Jul 4, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
daira added a commit to daira/zcash that referenced this issue Jul 25, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
@zerodartz
Copy link

hey. are most transparent wallets going to break after this change in fee? like trezor, ledger, coinomi, trust wallet, exodus etc? do they know they need to implement it? are they working on adding the ZIP317 support?

if not, there will be probably many users who cant transact on their wallets without restoring in wallets that support it.

daira added a commit to daira/zcash that referenced this issue Aug 12, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
daira added a commit to daira/zcash that referenced this issue Sep 26, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
daira added a commit to daira/zcash that referenced this issue Oct 1, 2024
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
@daira daira closed this as completed in 535f434 Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-block-creation Area: Block creation and submission by miners
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants