channel_list_mine is now channel_list

This commit is contained in:
Alex Grintsvayg 2018-03-15 14:39:43 -04:00
parent 0b1546cc79
commit 4c5d6ab161
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
3 changed files with 5 additions and 5 deletions

View file

@ -325,9 +325,9 @@ func (d *Client) ChannelNew(name string, amount float64) (*ChannelNewResponse, e
}) })
} }
func (d *Client) ChannelListMine() (*ChannelListMineResponse, error) { func (d *Client) ChannelList() (*ChannelListResponse, error) {
response := new(ChannelListMineResponse) response := new(ChannelListResponse)
return response, d.call(response, "channel_list_mine", map[string]interface{}{}) return response, d.call(response, "channel_list", map[string]interface{}{})
} }
type PublishOptions struct { type PublishOptions struct {

View file

@ -256,7 +256,7 @@ type ChannelNewResponse struct {
Txid string `json:"txid"` Txid string `json:"txid"`
} }
type ChannelListMineResponse []struct { type ChannelListResponse []struct {
Address string `json:"address"` Address string `json:"address"`
Amount decimal.Decimal `json:"amount"` Amount decimal.Decimal `json:"amount"`
BlocksToExpiration int `json:"blocks_to_expiration"` BlocksToExpiration int `json:"blocks_to_expiration"`

View file

@ -165,7 +165,7 @@ func (s *Sync) ensureChannelOwnership() error {
return errors.Err("no channel name set") return errors.Err("no channel name set")
} }
channels, err := s.daemon.ChannelListMine() channels, err := s.daemon.ChannelList()
if err != nil { if err != nil {
return err return err
} else if channels == nil { } else if channels == nil {