Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Jul 22, 2019

The remove* methods set the removal reason to UNKNOWN by default. This is nowhere used; Except in tests, where the value doesn't matter. Fix that by removing the confusing default.

@practicalswift
Copy link
Contributor

utACK 0000ff0

@promag
Copy link
Contributor

promag commented Jul 23, 2019

ACK 0000ff0.

@TheBlueMatt
Copy link
Contributor

utACK

@jonasschnelli
Copy link
Contributor

utACK 0000ff0

@jonasschnelli jonasschnelli merged commit 0000ff0 into bitcoin:master Jul 30, 2019
jonasschnelli added a commit that referenced this pull request Jul 30, 2019
…ason::UNKNOWN

0000ff0 txmempool: Remove unused default value MemPoolRemovalReason::UNKNOWN (MarcoFalke)

Pull request description:

  The `remove*` methods set the removal reason to `UNKNOWN` by default. This is nowhere used; Except in tests, where the value doesn't matter. Fix that by removing the confusing default.

ACKs for top commit:
  practicalswift:
    utACK 0000ff0
  promag:
    ACK 0000ff0.
  jonasschnelli:
    utACK 0000ff0

Tree-SHA512: ffc8b35dd3291a81225171577c743c8bb2645638cab02960b6361174cb68afd739aaab7ab8661d65de5750d37daf16bb7eee9338958d8609093a8d46c2ada1ab
@maflcko maflcko deleted the 1907-txmempoolNoUnknownDefault branch July 30, 2019 20:25
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 12, 2020
Summary: This is a backport of Core [[bitcoin/bitcoin#16433 | PR16433]]

Test Plan:
  ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

Differential Revision: https://reviews.bitcoinabc.org/D6504
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants