Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stop dirtying the blind_history on failing transfer_from_blind calls. #493

Merged
merged 1 commit into from
Nov 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libraries/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3928,6 +3928,9 @@ blind_confirmation wallet_api::transfer_from_blind( string from_blind_account_ke
ilog( "about to validate" );
conf.trx.validate();

ilog( "about to broadcast" );
conf.trx = sign_transaction( conf.trx, broadcast );

if( broadcast && conf.outputs.size() == 2 ) {

// Save the change
Expand All @@ -3945,9 +3948,6 @@ blind_confirmation wallet_api::transfer_from_blind( string from_blind_account_ke
//} catch ( ... ){}
}

ilog( "about to broadcast" );
conf.trx = sign_transaction( conf.trx, broadcast );

return conf;
} FC_CAPTURE_AND_RETHROW( (from_blind_account_key_or_label)(to_account_id_or_name)(amount_in)(symbol) ) }

Expand Down