aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJesse Cohen <jc@jc.lol>2018-07-09 15:02:32 -0400
committerJesse Cohen <jc@jc.lol>2018-07-09 21:09:58 -0400
commit3339ba28e95aaaa355b7d33a69cffca7ab29b3fd (patch)
treeb6a935e4bfb14659f952c42da2bb00b5ce4d6998 /src/init.cpp
parent6690a28606d6ada23355de7d9a9878f841b21e67 (diff)
Make g_enable_bip61 a member variable of PeerLogicValidation
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 1b1c40e083..6660b6661a 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1317,7 +1317,7 @@ bool AppInitMain()
g_connman = std::unique_ptr<CConnman>(new CConnman(GetRand(std::numeric_limits<uint64_t>::max()), GetRand(std::numeric_limits<uint64_t>::max())));
CConnman& connman = *g_connman;
- peerLogic.reset(new PeerLogicValidation(&connman, scheduler));
+ peerLogic.reset(new PeerLogicValidation(&connman, scheduler, gArgs.GetBoolArg("-enablebip61", DEFAULT_ENABLE_BIP61)));
RegisterValidationInterface(peerLogic.get());
// sanitize comments per BIP-0014, format user agent and check total size