Skip to content

Commit

Permalink
Make DEFAULT_BLOCK_UNPAID_ACTION_LIMIT zero.
Browse files Browse the repository at this point in the history
fixes zcash#6899 (see that issue for rationale)

Signed-off-by: Daira-Emma Hopwood <[email protected]>
  • Loading branch information
daira committed Aug 12, 2024
1 parent 114972b commit 0dc0db1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions doc/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ release-notes at release time)
Notable changes
===============

Mining
------

- The default setting of `-blockunpaidactionlimit` is now zero, which has
the effect of no longer allowing "unpaid actions" in [block production].
This adapts to current network conditions. If you have overridden this
setting as a miner, we recommend removing the override. This configuration
option may be removed entirely in a future release.

[block production]: https://zips.z.cash/zip-0317#block-production

Platform Support
----------------

Expand Down
2 changes: 1 addition & 1 deletion src/zip317.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static const size_t P2PKH_STANDARD_OUTPUT_SIZE = 34;
// Constants for block template construction.
static const int64_t WEIGHT_RATIO_SCALE = INT64_C(10000000000000000);
static const int64_t WEIGHT_RATIO_CAP = 4;
static const size_t DEFAULT_BLOCK_UNPAID_ACTION_LIMIT = 50;
static const size_t DEFAULT_BLOCK_UNPAID_ACTION_LIMIT = 0;

/// Limit on the number of unpaid actions a transaction can have to be accepted to the mempool.
static const size_t DEFAULT_TX_UNPAID_ACTION_LIMIT = DEFAULT_BLOCK_UNPAID_ACTION_LIMIT;
Expand Down

0 comments on commit 0dc0db1

Please sign in to comment.