Add support for NODE_COMPACT_FILTERS by default

This commit is contained in:
Pieter Wuille 2019-08-09 17:04:12 -07:00
parent 36bd7f9a0f
commit d098ad9a1f
2 changed files with 3 additions and 0 deletions

View file

@ -150,10 +150,12 @@ public:
filter_whitelist.insert(NODE_NETWORK); filter_whitelist.insert(NODE_NETWORK);
filter_whitelist.insert(NODE_NETWORK | NODE_BLOOM); filter_whitelist.insert(NODE_NETWORK | NODE_BLOOM);
filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS); filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS);
filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS | NODE_COMPACT_FILTERS);
filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS | NODE_BLOOM); filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS | NODE_BLOOM);
filter_whitelist.insert(NODE_NETWORK_LIMITED); filter_whitelist.insert(NODE_NETWORK_LIMITED);
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_BLOOM); filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_BLOOM);
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS); filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS);
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS | NODE_COMPACT_FILTERS);
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS | NODE_BLOOM); filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS | NODE_BLOOM);
} }
if (host != NULL && ns == NULL) showHelp = true; if (host != NULL && ns == NULL) showHelp = true;

View file

@ -62,6 +62,7 @@ enum
NODE_NETWORK = (1 << 0), NODE_NETWORK = (1 << 0),
NODE_BLOOM = (1 << 2), NODE_BLOOM = (1 << 2),
NODE_WITNESS = (1 << 3), NODE_WITNESS = (1 << 3),
NODE_COMPACT_FILTERS = (1 << 6),
NODE_NETWORK_LIMITED = (1 << 10), NODE_NETWORK_LIMITED = (1 << 10),
}; };