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: ACKf81b533bb5
Tree-SHA512: 92ec7604d5a302fabfa68e72c250ea6f69e8715d50b9724cf9af6eb88beff7837d898b60ff1d5b663f473f5e3d6fed41067fb803ec2dffe31c63171d8afa1357
This commit is contained in:
commit
00542a6800
1 changed files with 10 additions and 10 deletions
20
main.cpp
20
main.cpp
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue