Skip to content

Commit

Permalink
ticket-884 rolled back
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-skalelabs committed Nov 14, 2023
1 parent b241992 commit 2dca856
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions agent/bls.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ async function gatherSigningStartImpl( optsSignOperation ) {
optsSignOperation.errGathering = null;
optsSignOperation.promiseCompleteGathering = new Promise( ( resolve, reject ) => {
const iv = setInterval( function() {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( optsSignOperation.joGatheringTracker.nCountReceivedPrevious !=
optsSignOperation.joGatheringTracker.nCountReceived ) {
if( log.verboseGet() >= log.verboseReversed().debug ) {
Expand Down Expand Up @@ -1316,7 +1316,7 @@ async function gatherSigningStartImpl( optsSignOperation ) {
" node(s)", optsSignOperation.jarrMessages,
null
).catch( ( err ) => {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( log.verboseGet() >= log.verboseReversed().critical ) {
const strErrorMessage =
cc.error( "Problem(3) in BLS sign result handler, " +
Expand Down Expand Up @@ -1350,7 +1350,7 @@ async function gatherSigningStartImpl( optsSignOperation ) {
optsSignOperation.jarrMessages,
null
).catch( ( err ) => {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( log.verboseGet() >= log.verboseReversed().critical ) {
const strErrorMessage =
cc.error(
Expand Down Expand Up @@ -1425,7 +1425,7 @@ async function gatherSigningFinishImpl( optsSignOperation ) {
optsSignOperation.jarrMessages,
null
).catch( ( err ) => {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( log.verboseGet() >= log.verboseReversed().critical ) {
const strErrorMessage =
cc.error( "Problem(5) in BLS sign result handler, " +
Expand Down Expand Up @@ -1462,7 +1462,7 @@ async function gatherSigningFinishImpl( optsSignOperation ) {
JSON.stringify( optsSignOperation.joGatheringTracker ),
optsSignOperation.jarrMessages, null
).catch( ( err ) => {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( log.verboseGet() >= log.verboseReversed().critical ) {
const strErrorMessage =
cc.error( "Problem(6) in BLS sign result handler, " +
Expand Down Expand Up @@ -1598,7 +1598,7 @@ async function doSignProcessHandleCall(
cc.notice( "#" ) + cc.bright( nZeroBasedNodeIndex ) +
cc.debug( ":" ) + " ";
try {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( cntSuccess > optsSignOperation.nCountOfBlsPartsToCollect ) {
++optsSignOperation.joGatheringTracker.nCountSkipped;
if( log.verboseGet() >= log.verboseReversed().notice ) {
Expand Down Expand Up @@ -1840,7 +1840,7 @@ async function doSignMessagesImpl(
if( ! ( await prepareSignMessagesImpl( optsSignOperation ) ) )
return;
for( let i = 0; i < optsSignOperation.jarrNodes.length; ++i ) {
const cntSuccess = 0 + optsSignOperation.arrSignResults.length;
const cntSuccess = optsSignOperation.arrSignResults.length;
if( cntSuccess >= optsSignOperation.nCountOfBlsPartsToCollect ) {
if( log.verboseGet() >= log.verboseReversed().trace ) {
optsSignOperation.details.write( optsSignOperation.strLogPrefix +
Expand Down Expand Up @@ -2097,7 +2097,7 @@ async function doSignU256OneImpl( i, optsSignU256 ) {
const strLogPrefixA = cc.info( "BLS" ) + cc.debug( "/" ) + cc.notice( "#" ) +
cc.bright( nZeroBasedNodeIndex ) + cc.debug( ":" ) + " ";
try {
const cntSuccess = 0 + optsSignU256.arrSignResults.length;
const cntSuccess = optsSignU256.arrSignResults.length;
if( cntSuccess > optsSignU256.nCountOfBlsPartsToCollect ) {
++optsSignU256.joGatheringTracker.nCountSkipped;
if( log.verboseGet() >= log.verboseReversed().notice ) {
Expand Down Expand Up @@ -2200,7 +2200,7 @@ async function doSignU256Gathering( optsSignU256 ) {
const iv = setInterval( function() {
if( optsSignU256.joGatheringTracker.nCountReceivedPrevious !=
optsSignU256.joGatheringTracker.nCountReceived ) {
const cntSuccess = 0 + optsSignU256.arrSignResults.length;
const cntSuccess = optsSignU256.arrSignResults.length;
if( log.verboseGet() >= log.verboseReversed().debug ) {
optsSignU256.details.write(
cc.info( "BLS u256" ) +
Expand All @@ -2217,7 +2217,7 @@ async function doSignU256Gathering( optsSignU256 ) {
0 + optsSignU256.joGatheringTracker.nCountReceived;
}
++ optsSignU256.joGatheringTracker.nWaitIntervalStepsDone;
const cntSuccess = 0 + optsSignU256.arrSignResults.length;
const cntSuccess = optsSignU256.arrSignResults.length;
if( cntSuccess >= optsSignU256.nCountOfBlsPartsToCollect ) {
const strLogPrefixB = cc.info( "BLS u256" ) +
cc.debug( "/" ) + cc.sunny( "Summary" ) + cc.debug( ":" ) + " ";
Expand Down

0 comments on commit 2dca856

Please sign in to comment.