-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove references to the "private" field of channel info returned from listpeers RPC #193
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,11 +182,6 @@ class InitialRebalancer::Impl::Run::Impl | |
|
||
auto cs = p["channels"]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if a user run from cln docs of listpeers: |
||
for (auto c : cs) { | ||
auto priv = bool( | ||
c["private"] | ||
); | ||
if (priv) | ||
continue; | ||
auto state = std::string( | ||
c["state"] | ||
); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,17 +53,15 @@ class DummyEarningsManager { | |
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this PR is a good way to remind us that listpeerchannels is now a way to iterate over all the channels? |
||
auto const peers = std::string(R"JSON( | ||
[ { "id" : "020000000000000000000000000000000000000000000000000000000000000000" | ||
, "channels" : [ { "private" : false | ||
, "state" : "CHANNELD_NORMAL" | ||
, "channels" : [ { "state" : "CHANNELD_NORMAL" | ||
, "to_us_msat" : "1000000000msat" | ||
, "total_msat" : "1000000000msat" | ||
, "htlcs" : [] | ||
} | ||
] | ||
} | ||
, { "id" : "020000000000000000000000000000000000000000000000000000000000000001" | ||
, "channels" : [ { "private" : false | ||
, "state" : "CHANNELD_NORMAL" | ||
, "channels" : [ { "state" : "CHANNELD_NORMAL" | ||
, "to_us_msat" : "0msat" | ||
, "total_msat" : "1000000000msat" | ||
, "htlcs" : [] | ||
|
@@ -73,17 +71,15 @@ auto const peers = std::string(R"JSON( | |
|
||
|
||
, { "id" : "020000000000000000000000000000000000000000000000000000000000000003" | ||
, "channels" : [ { "private" : false | ||
, "state" : "CHANNELD_NORMAL" | ||
, "channels" : [ { "state" : "CHANNELD_NORMAL" | ||
, "to_us_msat" : "0msat" | ||
, "total_msat" : "1000000000msat" | ||
, "htlcs" : [] | ||
} | ||
] | ||
} | ||
, { "id" : "020000000000000000000000000000000000000000000000000000000000000004" | ||
, "channels" : [ { "private" : false | ||
, "state" : "CHANNELD_NORMAL" | ||
, "channels" : [ { "state" : "CHANNELD_NORMAL" | ||
, "to_us_msat" : "1000000000msat" | ||
, "total_msat" : "1000000000msat" | ||
, "htlcs" : [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here I guess