diff options
| author | João Barbosa <[email protected]> | 2017-10-24 09:26:05 +0100 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2017-11-02 12:39:14 -0400 |
| commit | 83df25736ebaa23777e965d265ed677a8d79f23f (patch) | |
| tree | 781000ee1e9b246db0ff115229e53171b69b7c96 /src/test/test_bitcoin.h | |
| parent | Connect to an extra outbound peer if our tip is stale (diff) | |
| download | discoin-83df25736ebaa23777e965d265ed677a8d79f23f.tar.xz discoin-83df25736ebaa23777e965d265ed677a8d79f23f.zip | |
Add CConnmanTest to mutate g_connman in tests
Diffstat (limited to 'src/test/test_bitcoin.h')
| -rw-r--r-- | src/test/test_bitcoin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h index 2390aca34..62ded2aaf 100644 --- a/src/test/test_bitcoin.h +++ b/src/test/test_bitcoin.h @@ -49,6 +49,12 @@ struct BasicTestingSetup { * Included are data directory, coins database, script check threads setup. */ class CConnman; +class CNode; +struct CConnmanTest { + static void AddNode(CNode& node); + static void ClearNodes(); +}; + class PeerLogicValidation; struct TestingSetup: public BasicTestingSetup { CCoinsViewDB *pcoinsdbview; |