Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Nov 2, 2021

This refactor request was added in commit eb30666, though it didn't explain why the refactor is needed and what the goal is. Given that this wasn't touched for more than 5 years, it doesn't seem critical. Generally, non-trivial TODOs make more sense as GitHub issues, so that they can be discussed and triaged more easily.

@maflcko
Copy link
Member Author

maflcko commented Nov 2, 2021

I am suspecting that this refactor request might have been a feature request on how prioritization should be handled for packages? Though, in that case it also makes more sense to discuss in an issue.

ping @sdaftuar in case I am missing something obvious.

Comment on lines 425 to 426
CAmount delta{0};
ApplyDelta(entry.GetTx().GetHash(), delta);
Copy link
Member

Choose a reason for hiding this comment

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

Don't have much background on what was intended, but I interpret this TODO to be "move these 2 lines up before the insert call, and delete the mapTx.modify() call below?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it is possible to fix it in that way, see commit fa300f5. Are you suggesting I open a pull with that?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I think it's better, regardless of whether that's what the todo is referring to

Copy link
Member

Choose a reason for hiding this comment

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

Should we just convert this PR into the suggested fix?

@laanwj
Copy link
Member

laanwj commented Apr 14, 2022

Code review ACK fa32cc0

Generally, non-trivial TODOs make more sense as GitHub issues, so that they can be discussed and triaged more easily.

Just going to go ahead and merge this. I fully agree with the OP. Any next steps can be done whether there's a TODO comment in the source code or not.

@laanwj laanwj merged commit 1e3ed01 into bitcoin:master Apr 14, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 14, 2022
fa32cc0 doc: Remove fee delta TODO from txmempool.cpp (MarcoFalke)

Pull request description:

  This refactor request was added in commit eb30666, though it didn't explain why the refactor is needed and what the goal is. Given that this wasn't touched for more than 5 years, it doesn't seem critical. Generally, non-trivial `TODO`s make more sense as GitHub issues, so that they can be discussed and triaged more easily.

ACKs for top commit:
  laanwj:
    Code review ACK fa32cc0

Tree-SHA512: 6629fef543e815136c82c38aa8ba2c4de68a5fe94c6954f2559e468f7e59052e02dd7c221d3b159be0314eaf0dbb18f74814297c58f76e2289c47e8d4f49be4e
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 23, 2022
Summary:
> This refactor request was added in commit eb30666, though it didn't explain why the refactor is needed and what the goal is. Given that this wasn't touched for more than 5 years, it doesn't seem critical. Generally, non-trivial TODOs make more sense as GitHub issues, so that they can be discussed and triaged more easily.

This is a backport of [[bitcoin/bitcoin#23416 | core#23416]]

Test Plan:  NA

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D12594
@maflcko maflcko deleted the 2111-docFeeDelta branch February 28, 2023 15:41
knst pushed a commit to knst/dash that referenced this pull request Oct 19, 2023
fa32cc0 doc: Remove fee delta TODO from txmempool.cpp (MarcoFalke)

Pull request description:

  This refactor request was added in commit eb30666, though it didn't explain why the refactor is needed and what the goal is. Given that this wasn't touched for more than 5 years, it doesn't seem critical. Generally, non-trivial `TODO`s make more sense as GitHub issues, so that they can be discussed and triaged more easily.

ACKs for top commit:
  laanwj:
    Code review ACK fa32cc0

Tree-SHA512: 6629fef543e815136c82c38aa8ba2c4de68a5fe94c6954f2559e468f7e59052e02dd7c221d3b159be0314eaf0dbb18f74814297c58f76e2289c47e8d4f49be4e
PastaPastaPasta pushed a commit to knst/dash that referenced this pull request Oct 23, 2023
fa32cc0 doc: Remove fee delta TODO from txmempool.cpp (MarcoFalke)

Pull request description:

  This refactor request was added in commit eb30666, though it didn't explain why the refactor is needed and what the goal is. Given that this wasn't touched for more than 5 years, it doesn't seem critical. Generally, non-trivial `TODO`s make more sense as GitHub issues, so that they can be discussed and triaged more easily.

ACKs for top commit:
  laanwj:
    Code review ACK fa32cc0

Tree-SHA512: 6629fef543e815136c82c38aa8ba2c4de68a5fe94c6954f2559e468f7e59052e02dd7c221d3b159be0314eaf0dbb18f74814297c58f76e2289c47e8d4f49be4e
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Oct 23, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Feb 28, 2024
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