Main Menu

some question about worker

Started by BTSdac, January 24, 2016, 09:07:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xeroc


xeroc

Burn reduces the max supply while refund gives the pay back to the reserves ..

Bts pay per day is a blockchain paramater that is controlled by committee .

BTSdac

Quote from: BTSdac on January 24, 2016, 09:07:24 AM
I try explain worker function to public , but I have two questions ,who can help me ,thanks  thanks

1. what different between "burn_worker" and "refund_worker"?
2.how many bts chain's budget per day?

void refund_worker_type::pay_worker(share_type pay, database& db)
{
   total_burned += pay;
   db.modify(db.get(asset_id_type()).dynamic_data(db), [pay](asset_dynamic_data_object& d) {
      d.current_supply -= pay;
   });
}
void burn_worker_type::pay_worker(share_type pay, database& db)
{
   total_burned += pay;
   db.adjust_balance( GRAPHENE_NULL_ACCOUNT, pay );
}

they are both burn the pay ,
but refund_worker_type does not increase totally supply of core asset
[url="//github.com"]github.com[/url] :pureland
BTS2.0 API :[url="ws://139.196.37.179:8091"]ws://139.196.37.179:8091[/url]
BTS2.0 API 数据源ws:[url="//139.196.37.179:8091"]//139.196.37.179:8091[/url]

BTSdac

#1
I try explain worker function to public , but I have two questions ,who can help me ,thanks  thanks

1. what different between "burn_worker" and "refund_worker"?
2.how many bts chain's budget per day?
[url="//github.com"]github.com[/url] :pureland
BTS2.0 API :[url="ws://139.196.37.179:8091"]ws://139.196.37.179:8091[/url]
BTS2.0 API 数据源ws:[url="//139.196.37.179:8091"]//139.196.37.179:8091[/url]