[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

@@ -524,8 +524,9 @@ public:
int changePos = -1;
bilingual_str error;
CCoinControl dummy;
FeeCalculation fee_calc_out;
{
BOOST_CHECK(wallet->CreateTransaction({recipient}, tx, fee, changePos, error, dummy));
BOOST_CHECK(wallet->CreateTransaction({recipient}, tx, fee, changePos, error, dummy, fee_calc_out));
}
wallet->CommitTransaction(tx, {}, {});
CMutableTransaction blocktx;