Show all Capabilities

This commit is contained in:
chimp1984 2020-12-19 14:50:08 -05:00
parent 1ca527447e
commit 2b53db2e21
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -47,6 +47,8 @@ public class CoreNetworkCapabilities {
if (config.daoActivated) {
maybeApplyDaoFullMode(config);
}
log.info(Capabilities.app.prettyPrint());
}
public static void maybeApplyDaoFullMode(Config config) {
@ -54,12 +56,10 @@ public class CoreNetworkCapabilities {
// bit later than we call that method so we have to add DAO_FULL_NODE Capability at preferences as well to
// be sure it is set in both cases.
if (config.fullDaoNode) {
log.info("Set Capability.DAO_FULL_NODE");
Capabilities.app.addAll(Capability.DAO_FULL_NODE);
} else {
// A lite node has the capability to receive bsq blocks. We do not want to send BSQ blocks to full nodes
// as they ignore them anyway.
log.info("Set Capability.RECEIVE_BSQ_BLOCK");
Capabilities.app.addAll(Capability.RECEIVE_BSQ_BLOCK);
}
}