File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -582,17 +582,19 @@ async function injectAndRecordTx(
582
582
} > {
583
583
const { raw } = tx
584
584
let nodeIpPort : string , baseUrl : string
585
-
586
- // Initialize them with some values({ nodeIpPort, baseUrl } = getBaseUrl())
585
+ ; ( { nodeIpPort, baseUrl } = getBaseUrl ( ) )
587
586
588
587
if ( config . enableBlacklistingIP ) {
589
- // Continuously reassign nodeIpPort and baseUrl until a non-blacklisted one is found
590
588
let entry
591
589
592
590
do {
593
- ; ( { nodeIpPort, baseUrl } = getBaseUrl ( ) )
594
591
entry = blacklistedIPMapping . get ( nodeIpPort )
595
- if ( entry !== undefined ) console . log ( 'The ip address blacklisted is' , nodeIpPort )
592
+
593
+ if ( entry !== undefined ) {
594
+ console . log ( 'The IP address blacklisted is' , nodeIpPort )
595
+ // Reassign nodeIpPort and baseUrl to find a new pair
596
+ ; ( { nodeIpPort, baseUrl } = getBaseUrl ( ) )
597
+ }
596
598
} while ( entry !== undefined )
597
599
}
598
600
You can’t perform that action at this time.
0 commit comments