@ -1017,6 +1017,14 @@ static UniValue sendfrom(const JSONRPCRequest& request)
return NullUniValue ;
}
if ( ! IsDeprecatedRPCEnabled ( " accounts " ) ) {
if ( request . fHelp ) {
throw std : : runtime_error ( " sendfrom (Deprecated, will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts) " ) ;
}
throw JSONRPCError ( RPC_METHOD_DEPRECATED , " sendfrom is deprecated and will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts. " ) ;
}
if ( request . fHelp | | request . params . size ( ) < 3 | | request . params . size ( ) > 6 )
throw std : : runtime_error (
" sendfrom \" fromaccount \" \" toaddress \" amount ( minconf \" comment \" \" comment_to \" ) \n "
@ -4376,7 +4384,6 @@ static const CRPCCommand commands[] =
{ " wallet " , " listwallets " , & listwallets , { } } ,
{ " wallet " , " loadwallet " , & loadwallet , { " filename " } } ,
{ " wallet " , " lockunspent " , & lockunspent , { " unlock " , " transactions " } } ,
{ " wallet " , " sendfrom " , & sendfrom , { " fromaccount " , " toaddress " , " amount " , " minconf " , " comment " , " comment_to " } } ,
{ " wallet " , " sendmany " , & sendmany , { " fromaccount|dummy " , " amounts " , " minconf " , " comment " , " subtractfeefrom " , " replaceable " , " conf_target " , " estimate_mode " } } ,
{ " wallet " , " sendtoaddress " , & sendtoaddress , { " address " , " amount " , " comment " , " comment_to " , " subtractfeefromamount " , " replaceable " , " conf_target " , " estimate_mode " } } ,
{ " wallet " , " settxfee " , & settxfee , { " amount " } } ,
@ -4397,6 +4404,7 @@ static const CRPCCommand commands[] =
{ " wallet " , " listaccounts " , & listaccounts , { " minconf " , " include_watchonly " } } ,
{ " wallet " , " listreceivedbyaccount " , & listreceivedbylabel , { " minconf " , " include_empty " , " include_watchonly " } } ,
{ " wallet " , " setaccount " , & setlabel , { " address " , " account " } } ,
{ " wallet " , " sendfrom " , & sendfrom , { " fromaccount " , " toaddress " , " amount " , " minconf " , " comment " , " comment_to " } } ,
{ " wallet " , " move " , & movecmd , { " fromaccount " , " toaccount " , " amount " , " minconf " , " comment " } } ,
/** Label functions (to replace non-balance account functions) */