@@ -13,7 +13,7 @@ import { query } from './utils'
1313const log = logger ( { name : 'amendments' } )
1414
1515const amendmentIDs = new Map < string , { name : string ; deprecated : boolean } > ( )
16- const votingAmendments = new Set < string > ( )
16+ const votingAmendmentsToTrack = new Set < string > ( )
1717const rippledVersions = new Map < string , string > ( )
1818// TODO: Use feature RPC instead when this issue is fixed and released:
1919// https://github.com/XRPLF/rippled/issues/4730
@@ -82,12 +82,12 @@ async function fetchNetworkAmendments(
8282 name : featuresAll [ id ] . name ,
8383 deprecated : RETIRED_AMENDMENTS . includes ( featuresAll [ id ] . name ) ,
8484 } )
85- votingAmendments . delete ( id )
85+ votingAmendmentsToTrack . delete ( id )
8686 }
8787
8888 // Some amendments in voting are not available in feature all request.
8989 // This loop tries to fetch them in feature one.
90- for ( const amendment_id of votingAmendments ) {
90+ for ( const amendment_id of votingAmendmentsToTrack ) {
9191 await fetchSingleAmendment ( amendment_id , client )
9292 }
9393
@@ -126,7 +126,7 @@ async function fetchSingleAmendment(
126126 name : feature . name ,
127127 deprecated : RETIRED_AMENDMENTS . includes ( feature . name ) ,
128128 } )
129- votingAmendments . delete ( amendment_id )
129+ votingAmendmentsToTrack . delete ( amendment_id )
130130 }
131131}
132132
@@ -147,7 +147,7 @@ async function fetchVotingAmendments(): Promise<void> {
147147 }
148148 const amendments = amendmentsDb . split ( ',' )
149149 for ( const amendment of amendments ) {
150- votingAmendments . add ( amendment )
150+ votingAmendmentsToTrack . add ( amendment )
151151 }
152152 }
153153}
0 commit comments