Skip to content

Commit

Permalink
Merge pull request #2314 from Taraxa-project/graphql-fix-4-testnet
Browse files Browse the repository at this point in the history
chore: fix possible reason of crash on testnet
  • Loading branch information
MatusKysel authored Feb 10, 2023
2 parents ecd746a + 4364c5c commit 29dfb3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/core_libs/network/graphql/src/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ std::vector<std::shared_ptr<object::DagBlock>> Query::getDagBlocks(std::optional
}
}

auto addDagBlocks = [&final_chain = final_chain_, &pbft_manager = pbft_manager_,
&transaction_manager = transaction_manager_](auto taraxa_dag_blocks,
auto& result_dag_blocks) -> size_t {
auto addDagBlocks = [final_chain = final_chain_, pbft_manager = pbft_manager_,
transaction_manager = transaction_manager_](auto taraxa_dag_blocks,
auto& result_dag_blocks) -> size_t {
for (auto& dag_block : taraxa_dag_blocks) {
result_dag_blocks.emplace_back(std::make_shared<object::DagBlock>(
std::make_shared<DagBlock>(std::move(dag_block), final_chain, pbft_manager, transaction_manager)));
Expand Down

0 comments on commit 29dfb3b

Please sign in to comment.