File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ plugins/recover: $(PLUGIN_RECOVER_OBJS) $(PLUGIN_LIB_OBJS) libcommon.a
203203plugins/recklessrpc : $(PLUGIN_RECKLESSRPC_OBJS ) $(PLUGIN_LIB_OBJS ) libcommon.a
204204
205205# This covers all the low-level list RPCs which return simple arrays
206- SQL_LISTRPCS := listchannels listforwards listhtlcs listinvoices listnodes listoffers listpeers listpeerchannels listclosedchannels listtransactions listsendpays listchainmoves listchannelmoves bkpr-listaccountevents bkpr-listincome
206+ SQL_LISTRPCS := listchannels listforwards listhtlcs listinvoices listnodes listoffers listpeers listpeerchannels listclosedchannels listtransactions listsendpays listchainmoves listchannelmoves bkpr-listaccountevents bkpr-listincome listnetworkevents
207207SQL_LISTRPCS_SCHEMAS := $(foreach l,$(SQL_LISTRPCS ) ,doc/schemas/$l.json)
208208SQL_SCHEMA_PARTS := $(foreach l,$(SQL_LISTRPCS ) , plugins/sql-schema_$l_gen.h)
209209
Original file line number Diff line number Diff line change @@ -1517,7 +1517,8 @@ static const struct refresh_funcs refresh_funcs[] = {
15171517 { "listclosedchannels" , default_refresh },
15181518 { "listtransactions" , default_refresh },
15191519 { "bkpr-listaccountevents" , default_refresh },
1520- { "bkpr-listincome" , default_refresh }
1520+ { "bkpr-listincome" , default_refresh },
1521+ { "listnetworkevents" , default_refresh },
15211522};
15221523
15231524static const struct refresh_funcs * find_command_refresh (const char * cmdname )
Original file line number Diff line number Diff line change @@ -3907,7 +3907,23 @@ def test_sql(node_factory, bitcoind):
39073907 {'name' : 'txid' ,
39083908 'type' : 'txid' },
39093909 {'name' : 'payment_id' ,
3910- 'type' : 'hex' }]}}
3910+ 'type' : 'hex' }]},
3911+ 'networkevents' : {
3912+ 'columns' : [{'name' : 'created_index' ,
3913+ 'type' : 'u64' },
3914+ {'name' : 'timestamp' ,
3915+ 'type' : 'u64' },
3916+ {'name' : 'peer_id' ,
3917+ 'type' : 'pubkey' },
3918+ {'name' : 'type' ,
3919+ 'type' : 'string' },
3920+ {'name' : 'reason' ,
3921+ 'type' : 'string' },
3922+ {'name' : 'duration_nsec' ,
3923+ 'type' : 'u64' },
3924+ {'name' : 'connect_attempted' ,
3925+ 'type' : 'boolean' }]},
3926+ }
39113927
39123928 sqltypemap = {'string' : 'TEXT' ,
39133929 'boolean' : 'INTEGER' ,
You can’t perform that action at this time.
0 commit comments