mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-30 09:40:16 +02:00
test: Add extra_args argument to TestChain100Setup constructor
This will be needed in a later commit.
This commit is contained in:
parent
faa46986aa
commit
fadb2ef2fa
@ -205,7 +205,8 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TestChain100Setup::TestChain100Setup()
|
TestChain100Setup::TestChain100Setup(const std::vector<const char*>& extra_args)
|
||||||
|
: TestingSetup{CBaseChainParams::REGTEST, extra_args}
|
||||||
{
|
{
|
||||||
SetMockTime(1598887952);
|
SetMockTime(1598887952);
|
||||||
constexpr std::array<unsigned char, 32> vchKey = {
|
constexpr std::array<unsigned char, 32> vchKey = {
|
||||||
|
@ -113,8 +113,8 @@ class CScript;
|
|||||||
/**
|
/**
|
||||||
* Testing fixture that pre-creates a 100-block REGTEST-mode block chain
|
* Testing fixture that pre-creates a 100-block REGTEST-mode block chain
|
||||||
*/
|
*/
|
||||||
struct TestChain100Setup : public RegTestingSetup {
|
struct TestChain100Setup : public TestingSetup {
|
||||||
TestChain100Setup();
|
TestChain100Setup(const std::vector<const char*>& extra_args = {});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new block with just given transactions, coinbase paying to
|
* Create a new block with just given transactions, coinbase paying to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user