Advertisement
Guest User

Untitled

a guest
Oct 4th, 2015
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. /**
  2. * Do not allow stake on a collateral deposit.
  3. */
  4. if (globals::instance().is_incentive_enabled())
  5. {
  6. auto it1 = coins.begin();
  7.  
  8. for (; it1 != coins.end(); ++it1)
  9. {
  10. for (auto & i : it1->first.transactions_in())
  11. {
  12. if (i == incentive::instance().get_transaction_in())
  13. {
  14. log_info(
  15. "Wallet, create coin stake is removing collateral "
  16. "transaction."
  17. );
  18.  
  19. coins.erase(it1);
  20.  
  21. break;
  22. }
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement