Skip to content

Commit

Permalink
Clear reward manager and staking manager on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
watto-engineer committed Jan 11, 2023
1 parent 0e32b9e commit e35736c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ void PrepareShutdown(NodeContext& node)
pTokenDB.reset();
tokenGroupManager.reset();
bettingsView.reset();
stakingManager.reset();
rewardManager.reset();
}
for (const auto& client : node.chain_clients) {
client->stop();
Expand Down

0 comments on commit e35736c

Please sign in to comment.