Whenever a wallet funds a transaction, the fee reason is reported to the user only if the verbose is set to true. I added an extra parameter to CreateTransaction
function in wallet.cpp. Then I implemented the fee reason return logic in SendMoney
in rpcwallet.cpp, followed by verbose parameter in sendtoaddress
and sendmany
functions. I also added a fee reason test case in walletbasic.py.
link to the issue: https://github.com/MarcoFalke/bitcoin-core/issues/22#issue-616251578