plugins/sql: add listpeerchannels support.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-01-30 16:54:17 +10:30
committed by Alex Myers
parent 51ae7118f1
commit 8a0ee5f56e
2 changed files with 4 additions and 1 deletions

View File

@@ -3302,6 +3302,9 @@ def test_sql(node_factory, bitcoind):
ret = l3.rpc.sql("SELECT * FROM peers;")
assert len(only_one(ret['rows'])) == 4
ret = l3.rpc.sql("SELECT * FROM peerchannels;")
assert len(only_one(ret['rows'])) == 57
l3.rpc.offer(1, 'desc')
ret = l3.rpc.sql("SELECT * FROM offers;")
assert len(only_one(ret['rows'])) == 6