MCPcopy Create free account
hub / github.com/bitshares/bitshares-core / init_split

Method init_split

libraries/chain/ticket_object.cpp:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void 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
61void ticket_object::update_target_type( time_point_sec now, ticket_type new_target_type, ticket_version version )
62{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected