File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ plugins/recover: common/gossmap.o common/sciddir_or_pubkey.o common/fp16.o $(PL
256
256
plugins/recklessrpc : $(PLUGIN_RECKLESSRPC_OBJS ) $(PLUGIN_LIB_OBJS ) $(PLUGIN_COMMON_OBJS ) $(JSMN_OBJS )
257
257
258
258
# This covers all the low-level list RPCs which return simple arrays
259
- SQL_LISTRPCS := listchannels listforwards listhtlcs listinvoices listnodes listoffers listpeers listpeerchannels listclosedchannels listtransactions listsendpays listchainmoves listchannelmoves bkpr-listaccountevents bkpr-listincome
259
+ SQL_LISTRPCS := listchannels listforwards listhtlcs listinvoices listnodes listoffers listpeers listpeerchannels listclosedchannels listtransactions listsendpays listchainmoves listchannelmoves bkpr-listaccountevents bkpr-listincome listnetworkevents
260
260
SQL_LISTRPCS_SCHEMAS := $(foreach l,$(SQL_LISTRPCS ) ,doc/schemas/$l.json)
261
261
SQL_SCHEMA_PARTS := $(foreach l,$(SQL_LISTRPCS ) , plugins/sql-schema_$l_gen.h)
262
262
Original file line number Diff line number Diff line change @@ -1487,7 +1487,8 @@ static const struct refresh_funcs refresh_funcs[] = {
1487
1487
{ "listclosedchannels" , default_refresh },
1488
1488
{ "listtransactions" , default_refresh },
1489
1489
{ "bkpr-listaccountevents" , default_refresh },
1490
- { "bkpr-listincome" , default_refresh }
1490
+ { "bkpr-listincome" , default_refresh },
1491
+ { "listnetworkevents" , default_refresh },
1491
1492
};
1492
1493
1493
1494
static const struct refresh_funcs * find_command_refresh (const char * cmdname )
Original file line number Diff line number Diff line change @@ -3869,7 +3869,21 @@ def test_sql(node_factory, bitcoind):
3869
3869
{'name' : 'txid' ,
3870
3870
'type' : 'txid' },
3871
3871
{'name' : 'payment_id' ,
3872
- 'type' : 'hex' }]}}
3872
+ 'type' : 'hex' }]},
3873
+ 'networkevents' : {
3874
+ 'columns' : [{'name' : 'created_index' ,
3875
+ 'type' : 'u64' },
3876
+ {'name' : 'timestamp' ,
3877
+ 'type' : 'u64' },
3878
+ {'name' : 'peer_id' ,
3879
+ 'type' : 'pubkey' },
3880
+ {'name' : 'type' ,
3881
+ 'type' : 'string' },
3882
+ {'name' : 'reason' ,
3883
+ 'type' : 'string' },
3884
+ {'name' : 'duration_nsec' ,
3885
+ 'type' : 'u64' }]},
3886
+ }
3873
3887
3874
3888
sqltypemap = {'string' : 'TEXT' ,
3875
3889
'boolean' : 'INTEGER' ,
You can’t perform that action at this time.
0 commit comments