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) {
|
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 {
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue