Skip to content

Commit

Permalink
Remove unnecessary cast (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptocode authored Feb 17, 2019
1 parent c079de3 commit eceb942
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nano/node/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,9 +1145,8 @@ bool nano::wallet::receive_sync (std::shared_ptr<nano::block> block_a, nano::acc

void nano::wallet::receive_async (std::shared_ptr<nano::block> block_a, nano::account const & representative_a, nano::uint128_t const & amount_a, std::function<void(std::shared_ptr<nano::block>)> const & action_a, uint64_t work_a, bool generate_work_a)
{
//assert (dynamic_cast<nano::send_block *> (block_a.get ()) != nullptr);
wallets.node.wallets.queue_wallet_action (amount_a, shared_from_this (), [block_a, representative_a, amount_a, action_a, work_a, generate_work_a](nano::wallet & wallet_a) {
auto block (wallet_a.receive_action (*static_cast<nano::block *> (block_a.get ()), representative_a, amount_a, work_a, generate_work_a));
auto block (wallet_a.receive_action (*block_a, representative_a, amount_a, work_a, generate_work_a));
action_a (block);
});
}
Expand Down

0 comments on commit eceb942

Please sign in to comment.