Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jun 7, 2022

This is a follow up commit from #25254 (comment)

This commit moves ancestor limit from validation to policy/settings.

@ghost ghost marked this pull request as draft June 7, 2022 15:28
@ghost ghost marked this pull request as ready for review June 7, 2022 15:45
@bitcoin bitcoin deleted a comment Jun 7, 2022
@laanwj laanwj added the Mempool label Jun 7, 2022

/** Default for -limitancestorcount, max number of in-mempool ancestors */
static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25;
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
Copy link
Member

Choose a reason for hiding this comment

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

The rest should be moved too, as stated in the comment.

DEFAULT_ANCESTOR_LIMIT
DEFAULT_ANCESTOR_SIZE_LIMIT
DEFAULT_DESCENDANT_LIMIT
DEFAULT_DESCENDANT_SIZE_LIMIT
DEFAULT_MEMPOOL_EXPIRY

@DrahtBot
Copy link
Contributor

DrahtBot commented Jun 8, 2022

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #25373 (Support ignoring "opt-in" flag for RBF (aka full RBF) by luke-jr)
  • #25290 ([kernel 3a/n] Decouple CTxMemPool from ArgsManager by dongcarl)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@maflcko
Copy link
Member

maflcko commented Jun 15, 2022

Closing for now due to inactivity. Since there hasn't been any substantial discussion on this pull request, feel free to open a new one.

If you do, make sure to squash the commits according to the contributing guidelines.

@fanquake
Copy link
Member

Picked up in #25388.

laanwj added a commit that referenced this pull request Jun 20, 2022
0d8e68d refactor: move DEFAULT_*_LIMIT assertions from validation to policy (fanquake)
9c94f3b refactor: move EXTRA_DESCENDANT_TX_SIZE_LIMIT to policy/policy.h (fanquake)
39c6036 refactor: use braced initialization in policy/policy.h (fanquake)
01ccfbe scripted-diff: use static constexpr in policy/policy.h (fanquake)
62d56bb refactor: Move DEFAULT_DESCENDANT_SIZE_LIMIT to policy/policy.h (fanquake)
a34aa4c refactor: Move DEFAULT_DESCENDANT_LIMIT to policy/policy.h (fanquake)
05fc5fd refactor: Move DEFAULT_ANCESTOR_SIZE_LIMIT to policy/policy.h (fanquake)
da8d304 refactor: Move DEFAULT_ANCESTOR_LIMIT to policy/policy.h (CAnon)

Pull request description:

  Picks up #25295. Which was a follow up to [a comment in #25254](#25254 (comment)).
  Moves policy constants from validation.h to policy.h.

ACKs for top commit:
  laanwj:
    Code review ACK 0d8e68d
  w0xlt:
    reACK 0d8e68d
  darosior:
    ACK 0d8e68d

Tree-SHA512: 79900b09dc3a8020b5053ec734f462cb6e8184ed2b76e9d8afae7fe5331bbc906daaa42c0f622782797d971aaf5698aa0155511ec1d15582cc7675c271664a8d
@bitcoin bitcoin locked and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants