deposit is working
This commit is contained in:
parent
740243e7df
commit
e79886030d
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ void sidechain_net_handler::sidechain_event_data_received(const sidechain_event_
|
||||||
const chain::global_property_object &gpo = database.get_global_properties();
|
const chain::global_property_object &gpo = database.get_global_properties();
|
||||||
|
|
||||||
// Deposit request
|
// Deposit request
|
||||||
if ((sed.peerplays_to == gpo.parameters.son_account()) && (sed.sidechain == sidechain_type::bitcoin)) {
|
if ((sed.peerplays_from == gpo.parameters.son_account()) && (sed.sidechain == sidechain_type::bitcoin)) {
|
||||||
|
|
||||||
for (son_id_type son_id : plugin.get_sons()) {
|
for (son_id_type son_id : plugin.get_sons()) {
|
||||||
if (plugin.is_active_son(son_id)) {
|
if (plugin.is_active_son(son_id)) {
|
||||||
|
|
@ -173,7 +173,7 @@ void sidechain_net_handler::process_deposits() {
|
||||||
t_op.amount = swdo.peerplays_asset;
|
t_op.amount = swdo.peerplays_asset;
|
||||||
*/
|
*/
|
||||||
asset_issue_operation i_op;
|
asset_issue_operation i_op;
|
||||||
i_op.fee = asset(2000000);
|
i_op.fee = asset(2001000);
|
||||||
i_op.issuer = gpo.parameters.son_account();
|
i_op.issuer = gpo.parameters.son_account();
|
||||||
i_op.asset_to_issue = swdo.peerplays_asset;
|
i_op.asset_to_issue = swdo.peerplays_asset;
|
||||||
i_op.issue_to_account = swdo.peerplays_to;
|
i_op.issue_to_account = swdo.peerplays_to;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue