MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FlattenMiningOptions

Function FlattenMiningOptions

src/node/mining_args.cpp:81–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81BlockCreateOptions FlattenMiningOptions(BlockCreateOptions options)
82{
83 if (!options.block_min_fee_rate) options.block_min_fee_rate = CFeeRate{DEFAULT_BLOCK_MIN_TX_FEE};
84 if (!options.print_modified_fee) options.print_modified_fee = DEFAULT_PRINT_MODIFIED_FEE;
85 if (!options.block_reserved_weight) options.block_reserved_weight = DEFAULT_BLOCK_RESERVED_WEIGHT;
86 if (!options.block_max_weight) options.block_max_weight = DEFAULT_BLOCK_MAX_WEIGHT;
87 return options;
88}
89
90BlockCreateOptions MergeMiningOptions(BlockCreateOptions x, const BlockCreateOptions& y)
91{

Callers 3

getmininginfoFunction · 0.85
CheckMiningOptionsFunction · 0.85
BlockAssemblerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected