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

refactor: combine Chain::findFirstBlockWithTime/findFirstBlockWithTimeAndHeight #15670

Merged

Conversation

ariard
Copy link
Contributor

@ariard ariard commented Mar 26, 2019

As suggested in #14711, pass height to CChain::FindEarliestAtLeast to
simplify Chain interface by combining findFirstBlockWithTime and
findFirstBlockWithTimeAndHeight into one

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 26, 2019

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

Conflicts

No conflicts as of last run.

src/chain.cpp Outdated Show resolved Hide resolved
src/test/skiplist_tests.cpp Outdated Show resolved Hide resolved
@maflcko maflcko changed the title refactor: combine Chain::findFirstBlockWithTime/findFirstBlockWithTim… refactor: combine Chain::findFirstBlockWithTime/findFirstBlockWithTimeAndHeight Mar 27, 2019
…eAndHeight

As suggested in bitcoin#14711, pass height to CChain::FindEarliestAtLeast to
simplify Chain interface by combining findFirstBlockWithTime and
findFirstBlockWithTimeAndHeight into one

Extend findearliestatleast_edge_test in consequence
@ariard ariard force-pushed the 2019-03-remove-find-first-block-time-height branch from d43bff5 to 765c0b3 Compare March 27, 2019 22:32
Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

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

utACK 765c0b3. Looks good, thanks for implementing the suggestion!

@jnewbery, you may be interested to review this since you first made the suggestion in #14711 (comment)

@jnewbery
Copy link
Contributor

utACK 765c0b3. Nice work @ariard!

@maflcko maflcko merged commit 765c0b3 into bitcoin:master Apr 19, 2019
maflcko pushed a commit that referenced this pull request Apr 19, 2019
…stBlockWithTimeAndHeight

765c0b3 refactor: combine Chain::findFirstBlockWithTime/findFirstBlockWithTimeAndHeight (Antoine Riard)

Pull request description:

  As suggested in #14711, pass height to CChain::FindEarliestAtLeast to
  simplify Chain interface by combining findFirstBlockWithTime and
  findFirstBlockWithTimeAndHeight into one

ACKs for commit 765c0b:
  jnewbery:
    utACK 765c0b3. Nice work @ariard!
  ryanofsky:
    utACK 765c0b3. Looks good, thanks for implementing the suggestion!

Tree-SHA512: 63f98252a93da95f08c0b6325ea98f717aa9ae4036d17eaa6edbec68e5ddd65672d66a6af267b80c36311fffa9b415a47308e95ea7718b300b685e23d4e9e6ec
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request May 27, 2020
…FirstBlockWithTimeAndHeight

Summary:
As suggested in #14711, pass height to CChain::FindEarliestAtLeast to
simplify Chain interface by combining findFirstBlockWithTime and
findFirstBlockWithTimeAndHeight into one

Extend findearliestatleast_edge_test in consequence

---

bitcoin/bitcoin@765c0b3

Depends on D6256

Backport of Core [[bitcoin/bitcoin#15670 | PR15670]]

Test Plan:
  ninja check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6257
@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.

None yet

7 participants