Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Do not allow stake on a collateral deposit.
- */
- if (globals::instance().is_incentive_enabled())
- {
- auto it1 = coins.begin();
- for (; it1 != coins.end(); ++it1)
- {
- for (auto & i : it1->first.transactions_in())
- {
- if (i == incentive::instance().get_transaction_in())
- {
- log_info(
- "Wallet, create coin stake is removing collateral "
- "transaction."
- );
- coins.erase(it1);
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement