Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ticket-1558 Removed redundant address field in SNB calls #1560

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions agent/clpTools.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1654,8 +1654,7 @@ export function commandLineTaskBrowseSkaleNetwork() {
"details": log,
"bStopNeeded": false
};
const addressFrom = imaState.chainProperties.mn.joAccount.address();
const arrSChains = await skaleObserver.loadSChains( addressFrom, opts );
const arrSChains = await skaleObserver.loadSChains( opts );
const cnt = arrSChains.length;
log.write( strLogPrefix + cc.normal( "Got " ) + cc.info( cnt ) +
cc.normal( " S-Chains(s) in SKALE NETWORK information: " ) +
Expand Down Expand Up @@ -1684,16 +1683,12 @@ export function commandLineTaskBrowseConnectedSChains() {
cc.debug( "Downloading SKALE network information..." ) + "\n" );
}
const opts = {
imaState: imaState,
"imaState": imaState,
"details": log,
"bStopNeeded": false
};
const addressFrom = imaState.chainProperties.mn.joAccount.address();
const arrSChainsCached = await skaleObserver.loadSChainsConnectedOnly(
imaState.chainProperties.sc.strChainName,
addressFrom,
opts
);
imaState.chainProperties.sc.strChainName, opts );
const cnt = arrSChainsCached.length;
log.write( strLogPrefix + cc.normal( "Got " ) + cc.info( cnt ) +
cc.normal( " connected S-Chain(s): " ) + cc.j( arrSChainsCached ) + "\n" );
Expand Down
2 changes: 0 additions & 2 deletions agent/discoveryTools.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ export function initialSkaleNetworkScanForS2S() {
"chain": imaState.chainProperties.sc,
"bParallelModeRefreshSNB": imaState.optsS2S.bParallelModeRefreshSNB ? true : false
};
const addressFrom = imaState.chainProperties.mn.joAccount.address();
if( log.verboseGet() >= log.verboseReversed().information ) {
log.write( strLogPrefix +
cc.debug( "Will start periodic S-Chains caching..." ) + "\n" );
}
await skaleObserver.periodicCachingStart(
imaState.chainProperties.sc.strChainName,
addressFrom,
opts
);
if( log.verboseGet() >= log.verboseReversed().information ) {
Expand Down
Loading