File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ let jobsStarted = false
2828let unlSigningKeys : Set < string > = new Set ( )
2929
3030/**
31- * Resets the UNL signing keys set. Used for testing.
31+ * Resets the UNL signing keys set.
3232 */
3333export function resetUNLSigningKeys ( ) : void {
3434 unlSigningKeys = new Set ( )
@@ -109,6 +109,7 @@ async function updateUNLManifestNetwork(network: string): Promise<void> {
109109 log . info ( 'Fetching UNL...' )
110110 const unl : UNLBlob = await fetchValidatorList ( await getFirstUNL ( network ) )
111111 const promises : Array < Promise < void > > = [ ]
112+ resetUNLSigningKeys ( )
112113
113114 unl . validators . forEach ( ( validator : UNLValidator ) => {
114115 const manifestHex = Buffer . from ( validator . manifest , 'base64' )
Original file line number Diff line number Diff line change 66 updateUNLManifests ,
77 updateUnls ,
88 purgeOldValidators ,
9- resetUNLSigningKeys ,
109} from '../../src/connection-manager/manifests'
1110import {
1211 destroy ,
@@ -34,7 +33,6 @@ describe('manifest ingest', () => {
3433 } )
3534
3635 beforeEach ( async ( ) => {
37- resetUNLSigningKeys ( )
3836 await query ( 'manifests' ) . delete ( '*' )
3937 await query ( 'validators' ) . delete ( '*' )
4038 } )
You can’t perform that action at this time.
0 commit comments