Skip to content

Commit

Permalink
Merge pull request #1356
Browse files Browse the repository at this point in the history
69b188c wallet2_api: fix payment ids from integrated addresses being ignored (moneromooo-monero)
  • Loading branch information
fluffypony committed Nov 24, 2016
2 parents 5217550 + 69b188c commit f801dc8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/wallet/api/wallet.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -605,6 +605,17 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const
break; break;
} }
} }
else if (has_payment_id) {
std::string extra_nonce;
set_encrypted_payment_id_to_tx_extra_nonce(extra_nonce, payment_id_short);
bool r = add_extra_nonce_to_tx_extra(extra, extra_nonce);
if (!r) {
m_status = Status_Error;
m_errorString = tr("Failed to add short payment id: ") + epee::string_tools::pod_to_hex(payment_id_short);
break;
}
}



//std::vector<tools::wallet2::pending_tx> ptx_vector; //std::vector<tools::wallet2::pending_tx> ptx_vector;


Expand Down

0 comments on commit f801dc8

Please sign in to comment.