Skip to content

Commit

Permalink
Add trx dupe check before adding callback #2220
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandeberg committed Mar 13, 2018
1 parent f762f14 commit 3f453bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ namespace detail

{
boost::lock_guard< boost::mutex > guard( _mtx );
FC_ASSERT( _callbacks.find( txid ) == _callbacks.end(), "Transaction is a duplicate" );
_callbacks[ txid ] = [&p]( const broadcast_transaction_synchronous_return& r )
{
p.set_value( r );
Expand Down

0 comments on commit 3f453bb

Please sign in to comment.