Update bootstrap fork resolution to handle open blocks (#760)
This commit is contained in:
parent
36e5921b40
commit
07e7a1d8db
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ void rai::bootstrap_attempt::process_fork (MDB_txn * transaction_a, std::shared_
|
|||
void rai::bootstrap_attempt::try_resolve_fork (MDB_txn * transaction_a, std::shared_ptr<rai::block> block_a, bool from_processor)
|
||||
{
|
||||
std::weak_ptr<rai::bootstrap_attempt> this_w (shared_from_this ());
|
||||
if (!node->store.block_exists (transaction_a, block_a->hash ()) && node->store.block_exists (transaction_a, block_a->root ()))
|
||||
if (!node->store.block_exists (transaction_a, block_a->hash ()) && (node->store.block_exists (transaction_a, block_a->root ()) || node->store.account_exists (transaction_a, block_a->root ())))
|
||||
{
|
||||
std::shared_ptr<rai::block> ledger_block (node->ledger.forked_block (transaction_a, *block_a));
|
||||
if (ledger_block)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue