@@ -1753,7 +1753,8 @@ class AccountPatcher {
17531753 for ( const chunk of report . summary . chunks ) {
17541754 if ( chunk . recordsProcessed > 0 ) {
17551755 res . write (
1756- `Chunk ${ chunk . chunkIndex } : ${ chunk . recordsProcessed } records in ${ chunk . timeSpentMs
1756+ `Chunk ${ chunk . chunkIndex } : ${ chunk . recordsProcessed } records in ${
1757+ chunk . timeSpentMs
17571758 } ms (${ chunk . low . substring ( 0 , 4 ) } ...)\n`
17581759 )
17591760 }
@@ -1784,9 +1785,7 @@ class AccountPatcher {
17841785 res . write ( ` Cache: [missing]\n` )
17851786 }
17861787 if ( account . trie ) {
1787- res . write (
1788- ` Trie: hash=${ account . trie . hash . substring ( 0 , 8 ) } ...\n`
1789- )
1788+ res . write ( ` Trie: hash=${ account . trie . hash . substring ( 0 , 8 ) } ...\n` )
17901789 } else {
17911790 res . write ( ` Trie: [missing]\n` )
17921791 }
@@ -1797,9 +1796,7 @@ class AccountPatcher {
17971796 } else {
17981797 res . write ( ` Storage: [missing]\n` )
17991798 }
1800- res . write (
1801- ` Matches: cth=${ account . cth } cst=${ account . cst } csh=${ account . csh } tsh=${ account . tsh } \n\n`
1802- )
1799+ res . write ( ` Matches: cth=${ account . cth } cst=${ account . cst } csh=${ account . csh } tsh=${ account . tsh } \n\n` )
18031800 }
18041801 }
18051802 }
@@ -2451,7 +2448,8 @@ class AccountPatcher {
24512448 if ( coverageEntry == null || coverageEntry . firstChoice == null ) {
24522449 const numActiveNodes = this . stateManager . currentCycleShardData . nodes . length
24532450 this . statemanager_fatal (
2454- `getNodeForQuery null ${ coverageEntry == null } ${ coverageEntry ?. firstChoice == null
2451+ `getNodeForQuery null ${ coverageEntry == null } ${
2452+ coverageEntry ?. firstChoice == null
24552453 } numActiveNodes:${ numActiveNodes } `,
24562454 `getNodeForQuery null ${ coverageEntry == null } ${ coverageEntry ?. firstChoice == null } `
24572455 )
@@ -2969,7 +2967,8 @@ class AccountPatcher {
29692967 /* prettier-ignore */ nestedCountersInstance . countEvent ( `accountPatcher` , `not enough votes ${ radix } ${ utils . makeShortHash ( votesMap . bestHash ) } uniqueVotes: ${ votesMap . allVotes . size } ` , 1 )
29702968 this . statemanager_fatal (
29712969 'debug findBadAccounts' ,
2972- `debug findBadAccounts ${ cycle } : ${ radix } bestVotes${ votesMap . bestVotes
2970+ `debug findBadAccounts ${ cycle } : ${ radix } bestVotes${
2971+ votesMap . bestVotes
29732972 } < minVotes:${ minVotes } uniqueVotes: ${ votesMap . allVotes . size } ${ utils . stringifyReduce ( simpleMap ) } `
29742973 )
29752974 }
@@ -3037,8 +3036,10 @@ class AccountPatcher {
30373036 }
30383037 this . statemanager_fatal (
30393038 'debug findBadAccounts' ,
3040- `debug findBadAccounts ${ cycle } : ${ radixToFix . radix
3041- } isInNonConsensusRange: ${ hasNonConsensusRange } isInNonStorageRange: ${ hasNonStorageRange } bestVotes ${ votesMap . bestVotes
3039+ `debug findBadAccounts ${ cycle } : ${
3040+ radixToFix . radix
3041+ } isInNonConsensusRange: ${ hasNonConsensusRange } isInNonStorageRange: ${ hasNonStorageRange } bestVotes ${
3042+ votesMap . bestVotes
30423043 } minVotes:${ minVotes } uniqueVotes: ${ votesMap . allVotes . size } ${ utils . stringifyReduce ( simpleMap ) } `
30433044 )
30443045 }
@@ -3792,7 +3793,8 @@ class AccountPatcher {
37923793
37933794 if ( logFlags . debug ) {
37943795 this . mainLogger . debug (
3795- `badAccounts cycle: ${ cycle } , ourBadAccounts: ${ results . badAccounts . length
3796+ `badAccounts cycle: ${ cycle } , ourBadAccounts: ${
3797+ results . badAccounts . length
37963798 } , ourBadAccounts: ${ Utils . safeStringify ( results . badAccounts ) } `
37973799 )
37983800 }
@@ -3802,7 +3804,8 @@ class AccountPatcher {
38023804 accountsTheyNeedToRepair = accountsTheyNeedToRepair . concat ( results . extraBadAccounts )
38033805 }
38043806 this . mainLogger . debug (
3805- `badAccounts cycle: ${ cycle } , accountsTheyNeedToRepair: ${ accountsTheyNeedToRepair . length
3807+ `badAccounts cycle: ${ cycle } , accountsTheyNeedToRepair: ${
3808+ accountsTheyNeedToRepair . length
38063809 } , accountsTheyNeedToRepair: ${ Utils . safeStringify ( accountsTheyNeedToRepair ) } `
38073810 )
38083811 fireAndForget ( ( ) => this . requestOtherNodesToRepair ( accountsTheyNeedToRepair ) )
@@ -3874,7 +3877,8 @@ class AccountPatcher {
38743877 'checkAndSetAccountData updateTooOld' ,
38753878 `checkAndSetAccountData updateTooOld ${ cycle } : acc:${ utils . stringifyReduce (
38763879 wrappedData . accountId
3877- ) } updateTS:${ wrappedData . timestamp } updateHash:${ utils . stringifyReduce ( wrappedData . stateId ) } cacheTS:${ accountMemData . t
3880+ ) } updateTS:${ wrappedData . timestamp } updateHash:${ utils . stringifyReduce ( wrappedData . stateId ) } cacheTS:${
3881+ accountMemData . t
38783882 } cacheHash:${ utils . stringifyReduce ( accountMemData . h ) } `
38793883 )
38803884 filterStats . tooOld ++
@@ -4091,7 +4095,8 @@ class AccountPatcher {
40914095 )
40924096 this . statemanager_fatal (
40934097 'isInSync = false' ,
4094- `bad accounts cycle:${ cycle } bad:${ results . badAccounts . length } received:${ wrappedDataList . length } failedH: ${ failedHashes . length
4098+ `bad accounts cycle:${ cycle } bad:${ results . badAccounts . length } received:${ wrappedDataList . length } failedH: ${
4099+ failedHashes . length
40954100 } filtered:${ utils . stringifyReduce ( filterStats ) } stats:${ utils . stringifyReduce (
40964101 results . stats
40974102 ) } getAccountStats: ${ utils . stringifyReduce ( getAccountStats ) } details: ${ utils . stringifyReduceLimit (
@@ -4677,7 +4682,8 @@ class AccountPatcher {
46774682 }
46784683
46794684 stream . write (
4680- `node: ${ nodesCovered . id } ${ nodesCovered . ipPort } \tgraph: ${ partitionGraph } \thome: ${ nodesCovered . hP
4685+ `node: ${ nodesCovered . id } ${ nodesCovered . ipPort } \tgraph: ${ partitionGraph } \thome: ${
4686+ nodesCovered . hP
46814687 } data:${ Utils . safeStringify ( nodesCovered ) } \n`
46824688 )
46834689 }
0 commit comments