[send] Make send RPCs return fee reason

This commit is contained in:
Sishir Giri
2020-07-12 12:52:02 -07:00
parent 1b313cacc9
commit d5863c0b3e
8 changed files with 60 additions and 21 deletions

View File

@@ -231,8 +231,9 @@ public:
{
LOCK(m_wallet->cs_wallet);
CTransactionRef tx;
FeeCalculation fee_calc_out;
if (!m_wallet->CreateTransaction(recipients, tx, fee, change_pos,
fail_reason, coin_control, sign)) {
fail_reason, coin_control, fee_calc_out, sign)) {
return {};
}
return tx;