![]() |
Bitcoin Core 30.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 () | |
Public Member Functions inherited from BasicTestingSetup | |
| 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 |
Public Attributes inherited from BasicTestingSetup | |
| 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 39 of file pcp_tests.cpp.
|
inlineexplicit |
Definition at line 42 of file pcp_tests.cpp.
|
inline |
| CNetAddr PCPTestingSetup::bind_any_ipv4 |
Definition at line 76 of file pcp_tests.cpp.
| CNetAddr PCPTestingSetup::default_gateway_ipv4 |
Definition at line 73 of file pcp_tests.cpp.
| CNetAddr PCPTestingSetup::default_gateway_ipv6 |
Definition at line 74 of file pcp_tests.cpp.
| CNetAddr PCPTestingSetup::default_local_ipv4 |
Definition at line 71 of file pcp_tests.cpp.
| CNetAddr PCPTestingSetup::default_local_ipv6 |
Definition at line 72 of file pcp_tests.cpp.
|
private |
Definition at line 78 of file pcp_tests.cpp.
|
staticconstexpr |
Definition at line 69 of file pcp_tests.cpp.