![]() |
Bitcoin Core 28.99.0
P2P Digital Currency
|
Save the value of CreateSock and restore when the test ends. More...
Public Member Functions | |
PCPTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts opts={}) | |
~PCPTestingSetup () | |
![]() | |
void | SeedRandomForTest (SeedRand seed) |
Seed the global RNG state and m_rng for testing and log the seed value. More... | |
BasicTestingSetup (const ChainType chainType=ChainType::MAIN, TestOpts={}) | |
~BasicTestingSetup () | |
Public Attributes | |
CNetAddr | default_local_ipv4 |
CNetAddr | default_local_ipv6 |
CNetAddr | default_gateway_ipv4 |
CNetAddr | default_gateway_ipv6 |
CNetAddr | bind_any_ipv4 |
![]() | |
util::SignalInterrupt | m_interrupt |
node::NodeContext | m_node |
FastRandomContext | m_rng |
fs::path | m_path_root |
fs::path | m_path_lock |
bool | m_has_custom_datadir {false} |
ArgsManager | m_args |
Test-specific arguments and settings. More... | |
Static Public Attributes | |
static constexpr PCPMappingNonce | TEST_NONCE {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc} |
Private Attributes | |
const decltype(CreateSock) | m_create_sock_orig |
Save the value of CreateSock and restore when the test ends.
Definition at line 37 of file pcp_tests.cpp.
|
inlineexplicit |
Definition at line 40 of file pcp_tests.cpp.
|
inline |
CNetAddr PCPTestingSetup::bind_any_ipv4 |
Definition at line 74 of file pcp_tests.cpp.
CNetAddr PCPTestingSetup::default_gateway_ipv4 |
Definition at line 71 of file pcp_tests.cpp.
CNetAddr PCPTestingSetup::default_gateway_ipv6 |
Definition at line 72 of file pcp_tests.cpp.
CNetAddr PCPTestingSetup::default_local_ipv4 |
Definition at line 69 of file pcp_tests.cpp.
CNetAddr PCPTestingSetup::default_local_ipv6 |
Definition at line 70 of file pcp_tests.cpp.
|
private |
Definition at line 76 of file pcp_tests.cpp.
|
staticconstexpr |
Definition at line 67 of file pcp_tests.cpp.