mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-27 22:27:39 +02:00
fuzz: Remove no-op call to get()
This commit is contained in:
@@ -114,7 +114,7 @@ FUZZ_TARGET_INIT(pow_transition, initialize_pow)
|
|||||||
auto current_block{std::make_unique<CBlockIndex>(header)};
|
auto current_block{std::make_unique<CBlockIndex>(header)};
|
||||||
current_block->pprev = blocks.empty() ? nullptr : blocks.back().get();
|
current_block->pprev = blocks.empty() ? nullptr : blocks.back().get();
|
||||||
current_block->nHeight = height;
|
current_block->nHeight = height;
|
||||||
blocks.emplace_back(std::move(current_block)).get();
|
blocks.emplace_back(std::move(current_block));
|
||||||
}
|
}
|
||||||
auto last_block{blocks.back().get()};
|
auto last_block{blocks.back().get()};
|
||||||
unsigned int new_nbits{GetNextWorkRequired(last_block, nullptr, consensus_params)};
|
unsigned int new_nbits{GetNextWorkRequired(last_block, nullptr, consensus_params)};
|
||||||
|
Reference in New Issue
Block a user