Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864598
D9316.id27920.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D9316.id27920.diff
View Options
diff --git a/src/init.cpp b/src/init.cpp
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -2433,6 +2433,9 @@
// Step 6.5 (I guess ?): Initialize Avalanche.
g_avalanche = std::make_unique<avalanche::Processor>(
*node.chain, node.connman.get(), node.peerman.get());
+ if (args.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED)) {
+ nLocalServices = ServiceFlags(nLocalServices | NODE_AVALANCHE);
+ }
// Step 7: load block chain
diff --git a/test/functional/abc_p2p_avalanche.py b/test/functional/abc_p2p_avalanche.py
--- a/test/functional/abc_p2p_avalanche.py
+++ b/test/functional/abc_p2p_avalanche.py
@@ -124,6 +124,11 @@
def run_test(self):
node = self.nodes[0]
+ self.log.info("Check the node is signalling the avalanche service.")
+ assert_equal(
+ int(node.getnetworkinfo()['localservices'], 16) & NODE_AVALANCHE,
+ NODE_AVALANCHE)
+
# Build a fake quorum of nodes.
def get_quorum():
def get_node():
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 20:45 (9 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5865914
Default Alt Text
D9316.id27920.diff (1 KB)
Attached To
D9316: Signal the avalanche service if avalanche is enabled
Event Timeline
Log In to Comment