diff --git a/jsonrpc/daemon.go b/jsonrpc/daemon.go index f8d8fd4..b520172 100644 --- a/jsonrpc/daemon.go +++ b/jsonrpc/daemon.go @@ -325,9 +325,9 @@ func (d *Client) ChannelNew(name string, amount float64) (*ChannelNewResponse, e }) } -func (d *Client) ChannelListMine() (*ChannelListMineResponse, error) { - response := new(ChannelListMineResponse) - return response, d.call(response, "channel_list_mine", map[string]interface{}{}) +func (d *Client) ChannelList() (*ChannelListResponse, error) { + response := new(ChannelListResponse) + return response, d.call(response, "channel_list", map[string]interface{}{}) } type PublishOptions struct { diff --git a/jsonrpc/daemon_types.go b/jsonrpc/daemon_types.go index 1a73daa..db4f41c 100644 --- a/jsonrpc/daemon_types.go +++ b/jsonrpc/daemon_types.go @@ -256,7 +256,7 @@ type ChannelNewResponse struct { Txid string `json:"txid"` } -type ChannelListMineResponse []struct { +type ChannelListResponse []struct { Address string `json:"address"` Amount decimal.Decimal `json:"amount"` BlocksToExpiration int `json:"blocks_to_expiration"` diff --git a/ytsync/setup.go b/ytsync/setup.go index 852d460..f73afca 100644 --- a/ytsync/setup.go +++ b/ytsync/setup.go @@ -165,7 +165,7 @@ func (s *Sync) ensureChannelOwnership() error { return errors.Err("no channel name set") } - channels, err := s.daemon.ChannelListMine() + channels, err := s.daemon.ChannelList() if err != nil { return err } else if channels == nil {