Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Oct 23, 2019

The default chain for TestingSetup is the main chain. However, any test that wants to mine blocks on demand needs to switch to regtest. This is done manually and in-line right now.

Fix that by creating an explicit RegTestingSetup and use it where appropriate.

Also, add a move-only commit to move ComputeFilter into the newly created unit test library.

Both commits are part of #15845, but split up because they are useful on their own.

@DrahtBot
Copy link
Contributor

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #16540 (test: Add ASSERT_DEBUG_LOG to unit test framework by MarcoFalke)

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.

@practicalswift
Copy link
Contributor

Concept ACK

@maflcko maflcko force-pushed the 1910-RegTestingSetup branch from faa598c to fa0a731 Compare October 30, 2019 18:12
@maflcko
Copy link
Member Author

maflcko commented Oct 30, 2019

Rebased

@maflcko
Copy link
Member Author

maflcko commented Nov 1, 2019

Anything left to do here?

@practicalswift
Copy link
Contributor

ACK fa0a731 -- diff looks correct

maflcko pushed a commit that referenced this pull request Nov 4, 2019
fa0a731 test: Add RegTestingSetup to setup_common (MarcoFalke)
fa54b3e test: move-only ComputeFilter to src/test/lib/blockfilter (MarcoFalke)

Pull request description:

  The default chain for `TestingSetup` is the main chain. However, any test that wants to mine blocks on demand needs to switch to regtest. This is done manually and in-line right now.

  Fix that by creating an explicit `RegTestingSetup` and use it where appropriate.

  Also, add a move-only commit to move `ComputeFilter` into the newly created unit test library.

  Both commits are part of #15845, but split up because they are useful on their own.

ACKs for top commit:
  practicalswift:
    ACK fa0a731 -- diff looks correct

Tree-SHA512: 02b9765580b355ed8d1be555f8ae11fa6e3d575f5cb177bbdda0319378837e29de5555c126c477dc8a1e8a5be47335afdcff152cf2dea2fbdd1a988ddde3689b
@maflcko maflcko merged commit fa0a731 into bitcoin:master Nov 4, 2019
@maflcko maflcko deleted the 1910-RegTestingSetup branch November 4, 2019 13:21
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 7, 2019
fa0a731 test: Add RegTestingSetup to setup_common (MarcoFalke)
fa54b3e test: move-only ComputeFilter to src/test/lib/blockfilter (MarcoFalke)

Pull request description:

  The default chain for `TestingSetup` is the main chain. However, any test that wants to mine blocks on demand needs to switch to regtest. This is done manually and in-line right now.

  Fix that by creating an explicit `RegTestingSetup` and use it where appropriate.

  Also, add a move-only commit to move `ComputeFilter` into the newly created unit test library.

  Both commits are part of bitcoin#15845, but split up because they are useful on their own.

ACKs for top commit:
  practicalswift:
    ACK fa0a731 -- diff looks correct

Tree-SHA512: 02b9765580b355ed8d1be555f8ae11fa6e3d575f5cb177bbdda0319378837e29de5555c126c477dc8a1e8a5be47335afdcff152cf2dea2fbdd1a988ddde3689b
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 4, 2020
Summary: This is a partial backport of Core [[bitcoin/bitcoin#17228 | PR17228]] : bitcoin/bitcoin@fa54b3e

Test Plan:
  ninja all check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D6356
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jun 4, 2020
Summary:
This is a partial backport of Core [[bitcoin/bitcoin#17228 | PR17228]] : bitcoin/bitcoin@fa0a731

Depends on D6356

Test Plan:
  ninja all check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D6358
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
fa0a731 test: Add RegTestingSetup to setup_common (MarcoFalke)
fa54b3e test: move-only ComputeFilter to src/test/lib/blockfilter (MarcoFalke)

Pull request description:

  The default chain for `TestingSetup` is the main chain. However, any test that wants to mine blocks on demand needs to switch to regtest. This is done manually and in-line right now.

  Fix that by creating an explicit `RegTestingSetup` and use it where appropriate.

  Also, add a move-only commit to move `ComputeFilter` into the newly created unit test library.

  Both commits are part of bitcoin#15845, but split up because they are useful on their own.

ACKs for top commit:
  practicalswift:
    ACK fa0a731 -- diff looks correct

Tree-SHA512: 02b9765580b355ed8d1be555f8ae11fa6e3d575f5cb177bbdda0319378837e29de5555c126c477dc8a1e8a5be47335afdcff152cf2dea2fbdd1a988ddde3689b
@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.

3 participants