Skip to content

Commit

Permalink
[TSAN] lock order inversion in active transactions / wallet (#2711)
Browse files Browse the repository at this point in the history
in core_test websocket.confirmation_options
  • Loading branch information
SergiySW authored Apr 9, 2020
1 parent 7f6fd1a commit 588efbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ void nano::active_transactions::block_cemented_callback (std::shared_ptr<nano::b
lk.lock ();
election->status.type = *election_status_type;
election->status.confirmation_request_count = election->confirmation_request_count;
node.observers.blocks.notify (election->status, account, amount, is_state_send);
auto status (election->status);
lk.unlock ();
node.observers.blocks.notify (status, account, amount, is_state_send);
if (amount > 0)
{
node.observers.account_balance.notify (account, false);
Expand Down

0 comments on commit 588efbc

Please sign in to comment.