Skip to content

Commit

Permalink
wallet: move loadwallet back to step 9
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackcoinDev committed Sep 21, 2024
1 parent 844aaf5 commit 764ca4d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,13 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
// Init indexes
for (auto index : node.indexes) if (!index->Init()) return false;

// ********************************************************* Step 9: load wallet
for (const auto& client : node.chain_clients) {
if (!client->load()) {
return false;
}
}

// ********************************************************* Step 10: data directory maintenance

LogPrintf("Setting NODE_NETWORK\n");
Expand Down Expand Up @@ -1744,12 +1751,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
return false;
}

// ********************************************************* Step 9: load wallet
for (const auto& client : node.chain_clients) {
if (!client->load()) {
return false;
}
}
// ********************************************************* Step 12: start node

//// debug print
Expand Down

0 comments on commit 764ca4d

Please sign in to comment.