Merge #77: [doc] add hex equivalent for flags

f81b533bb5 [doc] add hex equivalent for flags (Sjors Provoost)

Pull request description:

  Handy for those who do not natively think in binary and hex.

ACKs for top commit:
  sipa:
    ACK f81b533bb5

Tree-SHA512: 92ec7604d5a302fabfa68e72c250ea6f69e8715d50b9724cf9af6eb88beff7837d898b60ff1d5b663f473f5e3d6fed41067fb803ec2dffe31c63171d8afa1357
This commit is contained in:
Pieter Wuille 2020-12-17 11:04:18 -08:00
commit 00542a6800
No known key found for this signature in database
GPG key ID: A636E97631F767E0

View file

@ -162,16 +162,16 @@ public:
}
}
if (filter_whitelist.empty()) {
filter_whitelist.insert(NODE_NETWORK);
filter_whitelist.insert(NODE_NETWORK | NODE_BLOOM);
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_LIMITED);
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_BLOOM);
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); // x1
filter_whitelist.insert(NODE_NETWORK | NODE_BLOOM); // x5
filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS); // x9
filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS | NODE_COMPACT_FILTERS); // x49
filter_whitelist.insert(NODE_NETWORK | NODE_WITNESS | NODE_BLOOM); // xd
filter_whitelist.insert(NODE_NETWORK_LIMITED); // x400
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_BLOOM); // x404
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS); // x408
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS | NODE_COMPACT_FILTERS); // x448
filter_whitelist.insert(NODE_NETWORK_LIMITED | NODE_WITNESS | NODE_BLOOM); // x40c
}
if (host != NULL && ns == NULL) showHelp = true;
if (showHelp) fprintf(stderr, help, argv[0]);