Use enclosing transaction within scheduler::optimistic::run_one rather than opening a new one.
This commit is contained in:
parent
86438ddb12
commit
2ac4aa79d8
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ void nano::scheduler::optimistic::run_one (store::transaction const & transactio
|
||||||
if (block)
|
if (block)
|
||||||
{
|
{
|
||||||
// Ensure block is not already confirmed
|
// Ensure block is not already confirmed
|
||||||
if (!node.block_confirmed_or_being_confirmed (block->hash ()))
|
if (!node.block_confirmed_or_being_confirmed (transaction, block->hash ()))
|
||||||
{
|
{
|
||||||
// Try to insert it into AEC
|
// Try to insert it into AEC
|
||||||
// We check for AEC vacancy inside our predicate
|
// We check for AEC vacancy inside our predicate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue