Update src/libxrpl/nodestore/DatabaseNodeImp.cpp

Co-authored-by: Ed Hennis <ed@ripple.com>
This commit is contained in:
Bart
2026-02-03 10:22:36 -05:00
committed by GitHub
parent 9639b79155
commit aeb7934c0c

View File

@@ -75,8 +75,7 @@ DatabaseNodeImp::fetchBatch(std::vector<uint256> const& hashes)
batch.push_back(&hash);
}
std::vector<std::shared_ptr<NodeObject>> results{hashes.size()};
results = backend_->fetchBatch(batch).first;
std::vector<std::shared_ptr<NodeObject>> const results = backend_->fetchBatch(batch).first;
for (size_t i = 0; i < results.size(); ++i)
{
if (!results[i])