Remove uses of g_connman in wallet code

This commit does not change behavior.
This commit is contained in:
Russell Yanofsky
2017-07-28 22:50:07 -04:00
parent cc3836e8f9
commit 00dfb2a440
5 changed files with 17 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include <chain.h>
#include <chainparams.h>
#include <net.h>
#include <policy/fees.h>
#include <policy/policy.h>
#include <policy/rbf.h>
@@ -229,6 +230,7 @@ public:
return ::mempool.GetMinFee(gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000);
}
bool getPruneMode() override { return ::fPruneMode; }
bool p2pEnabled() override { return g_connman != nullptr; }
};
} // namespace