@ -357,7 +357,8 @@ static void json_listaddrs(struct command *cmd,
static const struct json_command listaddrs_command = {
" dev-listaddrs " ,
json_listaddrs ,
" Show addresses list up to derivation {index} (default is the last bip32 index) " , false ,
" Show addresses list up to derivation {index} (default is the last bip32 index) " ,
false ,
" Show addresses of your internal wallet. Use `newaddr` to generate a new address. "
} ;
AUTODATA ( json_command , & listaddrs_command ) ;
@ -387,7 +388,8 @@ static void json_listfunds(struct command *cmd, const char *buffer UNUSED,
pubkey_to_hash160 ( & funding_pubkey , & h160 ) ;
if ( utxos [ i ] - > is_p2sh ) {
out = p2sh_to_base58 ( cmd ,
get_chainparams ( cmd - > ld ) - > testnet , & h160 ) ;
get_chainparams ( cmd - > ld ) - > testnet ,
& h160 ) ;
} else {
const char * hrp = get_chainparams ( cmd - > ld ) - > bip173_name ;
/* out buffer is 73 + strlen(human readable part). see bech32.h */
@ -442,7 +444,8 @@ static void json_listfunds(struct command *cmd, const char *buffer UNUSED,
static const struct json_command listfunds_command = {
" listfunds " ,
json_listfunds ,
" Show available funds from the internal wallet " , false ,
" Show available funds from the internal wallet " ,
false ,
" Returns a list of funds (outputs) that can be used by the internal wallet to open new channels or can be withdrawn, using the `withdraw` command, to another wallet. "
} ;
AUTODATA ( json_command , & listfunds_command ) ;
@ -513,8 +516,10 @@ static void json_dev_rescan_outputs(struct command *cmd,
}
static const struct json_command dev_rescan_output_command = {
" dev-rescan-outputs " , json_dev_rescan_outputs ,
" Synchronize the state of our funds with bitcoind " , false ,
" dev-rescan-outputs " ,
json_dev_rescan_outputs ,
" Synchronize the state of our funds with bitcoind " ,
false ,
" For each output stored in the internal wallet ask `bitcoind` whether we are in sync with its state (spent vs. unspent) "
} ;
AUTODATA ( json_command , & dev_rescan_output_command ) ;