| 44 | } |
| 45 | |
| 46 | void ticket_object::init_split( time_point_sec now, const ticket_object& old_ticket, |
| 47 | ticket_type new_target_type, const asset& new_amount, ticket_version version ) |
| 48 | { |
| 49 | account = old_ticket.account; |
| 50 | target_type = old_ticket.target_type; |
| 51 | amount = new_amount; |
| 52 | |
| 53 | current_type = old_ticket.current_type; |
| 54 | status = old_ticket.status; |
| 55 | next_auto_update_time = old_ticket.next_auto_update_time; |
| 56 | next_type_downgrade_time = old_ticket.next_type_downgrade_time; |
| 57 | |
| 58 | update_target_type( now, new_target_type, version ); |
| 59 | } |
| 60 | |
| 61 | void ticket_object::update_target_type( time_point_sec now, ticket_type new_target_type, ticket_version version ) |
| 62 | { |