@@ -311,6 +311,7 @@ def make_completion_dict(contacts, pending={}, to=None):
311311 "contacts" : None ,
312312 "pending_contacts" : None ,
313313 "add_pending" : pending_list ,
314+ "flush_pending" : None ,
314315 "contact_info" : contact_list ,
315316 "export_contact" : contact_list ,
316317 "upload_contact" : contact_list ,
@@ -1379,9 +1380,12 @@ async def next_cmd(mc, cmds, json_output=False):
13791380 for c in mc .pending_contacts .items ():
13801381 print (f"{ c [1 ]["adv_name" ]} : { c [1 ]["public_key" ]} " )
13811382
1383+ case "flush_pending" :
1384+ mc .flush_pending_contacts ()
1385+
13821386 case "add_pending" :
13831387 argnum = 1
1384- contact = mc .pending_contacts . pop (cmds [1 ], None )
1388+ contact = mc .pop_pending_contact (cmds [1 ])
13851389 if contact is None :
13861390 if json_output :
13871391 print (json .dumps ({"error" :"Contact does not exist" }))
@@ -1818,6 +1822,7 @@ def command_help():
18181822 req_telemetry <ct> : prints telemetry data as json rt
18191823 pending_contacts : show pending contacts
18201824 add_pending <key> : manually add pending contact from key
1825+ flush_pending : flush pending contact clist
18211826 Repeaters
18221827 login <name> <pwd> : log into a node (rep) with given pwd l
18231828 logout <name> : log out of a repeater
0 commit comments