MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / AvoidFullBlocks

Method AvoidFullBlocks

src/options.cpp:96–99  ·  view source on GitHub ↗

Don't request blocks from nodes that don't support thin blocks.

Source from the content-addressed store, hash-verified

94
95/// Don't request blocks from nodes that don't support thin blocks.
96bool Opt::AvoidFullBlocks() {
97 return Args->GetArg("-use-thin-blocks", 1) == 2
98 || Args->GetArg("-use-thin-blocks", 1) == 3;
99}
100
101int Opt::ThinBlocksMaxParallel() {
102 return Args->GetArg("-thin-blocks-max-parallel", 3);

Callers 2

pickDownloadStrategyMethod · 0.80
WillDownloadFromNodeFunction · 0.80

Calls 1

GetArgMethod · 0.45

Tested by

no test coverage detected