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() {
btcjson.RegisterCustomCmd("authenticate", parseAuthenticateCmd,
btcjson.RegisterCustomCmd("authenticate", parseAuthenticateCmd, nil,
authenticateHelp)
btcjson.RegisterCustomCmd("createencryptedwallet",
parseCreateEncryptedWalletCmd, `TODO(jrick) fillmein`)
parseCreateEncryptedWalletCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("exportwatchingwallet",
parseExportWatchingWalletCmd, `TODO(jrick) fillmein`)
parseExportWatchingWalletCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getaddressbalance",
parseGetAddressBalanceCmd, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd,
parseGetAddressBalanceCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getbestblock", parseGetBestBlockCmd, nil,
`TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd,
btcjson.RegisterCustomCmd("getcurrentnet", parseGetCurrentNetCmd, nil,
`TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("getunconfirmedbalance",
parseGetUnconfirmedBalanceCmd, `TODO(jrick) fillmein`)
parseGetUnconfirmedBalanceCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("listaddresstransactions",
parseListAddressTransactionsCmd, `TODO(jrick) fillmein`)
parseListAddressTransactionsCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("listalltransactions",
parseListAllTransactionsCmd, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd,
parseListAllTransactionsCmd, nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifyblocks", parseNotifyBlocksCmd, nil,
`TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd,
btcjson.RegisterCustomCmd("notifynewtxs", parseNotifyNewTXsCmd, nil,
`TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("notifyallnewtxs", parseNotifyAllNewTXsCmd,
`TODO(flam) fillmein`)
nil, `TODO(flam) fillmein`)
btcjson.RegisterCustomCmd("notifyspent", parseNotifySpentCmd,
`TODO(jrick) fillmein`)
nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("recoveraddresses", parseRecoverAddressesCmd,
`TODO(jrick) fillmein`)
nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("rescan", parseRescanCmd,
`TODO(jrick) fillmein`)
nil, `TODO(jrick) fillmein`)
btcjson.RegisterCustomCmd("walletislocked", parseWalletIsLockedCmd,
`TODO(jrick) fillmein`)
nil, `TODO(jrick) fillmein`)
}
// AuthenticateCmd is a type handling custom marshaling and

View file

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