channel_list_mine is now channel_list
This commit is contained in:
parent
0b1546cc79
commit
4c5d6ab161
3 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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"`
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue