Update for btcjson RegisterCustomCmd API change.

This commit is contained in:
Dave Collins 2014-04-11 14:00:22 -05:00
parent fdc49d6a30
commit 3208b7ae75
2 changed files with 29 additions and 30 deletions

32
cmds.go
View file

@ -21,38 +21,38 @@ first command sent or you will be disconnected.`
) )
func init() { func init() {
btcjson.RegisterCustomCmd("authenticate", parseAuthenticateCmd, btcjson.RegisterCustomCmd("authenticate", parseAuthenticateCmd, nil,
authenticateHelp) authenticateHelp)
btcjson.RegisterCustomCmd("createencryptedwallet", btcjson.RegisterCustomCmd("createencryptedwallet",
parseCreateEncryptedWalletCmd, `TODO(jrick) fillmein`) parseCreateEncryptedWalletCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("exportwatchingwallet", btcjson.RegisterCustomCmd("exportwatchingwallet",
parseExportWatchingWalletCmd, `TODO(jrick) fillmein`) parseExportWatchingWalletCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getaddressbalance", btcjson.RegisterCustomCmd("getaddressbalance",
parseGetAddressBalanceCmd, `TODO(jrick) fillmein`) parseGetAddressBalanceCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd, btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd, nil,
`TODO(jrick) fillmein`) `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd, btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd, nil,
`TODO(jrick) fillmein`) `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getunconfirmedbalance", btcjson.RegisterCustomCmd("getunconfirmedbalance",
parseGetUnconfirmedBalanceCmd, `TODO(jrick) fillmein`) parseGetUnconfirmedBalanceCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("listaddresstransactions", btcjson.RegisterCustomCmd("listaddresstransactions",
parseListAddressTransactionsCmd, `TODO(jrick) fillmein`) parseListAddressTransactionsCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("listalltransactions", btcjson.RegisterCustomCmd("listalltransactions",
parseListAllTransactionsCmd, `TODO(jrick) fillmein`) parseListAllTransactionsCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd, btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd, nil,
`TODO(jrick) fillmein`) `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd, btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd, nil,
`TODO(jrick) fillmein`) `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifyallnewtxs", parseNotifyAllNewTXsCmd, btcjson.RegisterCustomCmd("notifyallnewtxs", parseNotifyAllNewTXsCmd,
`TODO(flam) fillmein`) nil, `TODO(flam) fillmein`)
btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd, btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd,
`TODO(jrick) fillmein`) nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("recoveraddresses", parseRecoverAddressesCmd, btcjson.RegisterCustomCmd("recoveraddresses", parseRecoverAddressesCmd,
`TODO(jrick) fillmein`) nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("rescan", parseRescanCmd, btcjson.RegisterCustomCmd("rescan", parseRescanCmd,
`TODO(jrick) fillmein`) nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("walletislocked", parseWalletIsLockedCmd, btcjson.RegisterCustomCmd("walletislocked", parseWalletIsLockedCmd,
`TODO(jrick) fillmein`) nil, `TODO(jrick) fillmein`)
} }
// AuthenticateCmd is a type handling custom marshaling and // AuthenticateCmd is a type handling custom marshaling and

View file

@ -65,28 +65,27 @@ const (
// Register notifications with btcjson. // Register notifications with btcjson.
func init() { func init() {
btcjson.RegisterCustomCmd(AccountBalanceNtfnMethod, btcjson.RegisterCustomCmd(AccountBalanceNtfnMethod,
parseAccountBalanceNtfn, `TODO(jrick) fillmein`) parseAccountBalanceNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(BlockConnectedNtfnMethod, btcjson.RegisterCustomCmd(BlockConnectedNtfnMethod,
parseBlockConnectedNtfn, `TODO(jrick) fillmein`) parseBlockConnectedNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(BlockDisconnectedNtfnMethod, btcjson.RegisterCustomCmd(BlockDisconnectedNtfnMethod,
parseBlockDisconnectedNtfn, `TODO(jrick) fillmein`) parseBlockDisconnectedNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(BtcdConnectedNtfnMethod, btcjson.RegisterCustomCmd(BtcdConnectedNtfnMethod,
parseBtcdConnectedNtfn, `TODO(jrick) fillmein`) parseBtcdConnectedNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(RecvTxNtfnMethod, btcjson.RegisterCustomCmd(RecvTxNtfnMethod,
parseRecvTxNtfn, `TODO(jrick) fillmein`) parseRecvTxNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(RescanProgressNtfnMethod, btcjson.RegisterCustomCmd(RescanProgressNtfnMethod,
parseRescanProgressNtfn, `TODO(jrick) fillmein`) parseRescanProgressNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(RedeemingTxNtfnMethod, parseRedeemingTxNtfn, btcjson.RegisterCustomCmd(RedeemingTxNtfnMethod, parseRedeemingTxNtfn,
`TODO(jrick) fillmein`) nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(TxNtfnMethod, parseTxNtfn, btcjson.RegisterCustomCmd(TxNtfnMethod, parseTxNtfn, nil,
`TODO(jrick) fillmein`) `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(WalletLockStateNtfnMethod, btcjson.RegisterCustomCmd(WalletLockStateNtfnMethod,
parseWalletLockStateNtfn, `TODO(jrick) fillmein`) parseWalletLockStateNtfn, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd(AllTxNtfnMethod, btcjson.RegisterCustomCmd(AllTxNtfnMethod, parseAllTxNtfn, nil,
parseAllTxNtfn, `TODO(flam) fillmein`) `TODO(flam) fillmein`)
btcjson.RegisterCustomCmd(AllVerboseTxNtfnMethod, btcjson.RegisterCustomCmd(AllVerboseTxNtfnMethod, parseAllVerboseTxNtfn,
parseAllVerboseTxNtfn, `TODO(flam) fillmein`) nil, `TODO(flam) fillmein`)
} }
// BlockDetails describes details of a tx in a block. // BlockDetails describes details of a tx in a block.