File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
.snippets/code/tutorials/interoperability/xcm-observability Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -133,16 +133,12 @@ async function main() {
133133 const parachainBlockAfter = await para2Client . getFinalizedBlock ( ) ;
134134 if ( parachainBlockAfter . number == parachainBlockBefore . number ) {
135135 const waiting = 1_000 * ( i + 1 ) ;
136- console . log (
137- `⏳ Waiting ${ waiting } ms for ${ para2Name } block to be finalised (${ i + 1 } /${ maxRetries } )...` ,
138- ) ;
136+ console . log ( `⏳ Waiting ${ waiting } ms for ${ para2Name } block to be finalised (${ i + 1 } /${ maxRetries } )...` ) ;
139137 await new Promise ( ( resolve ) => setTimeout ( resolve , waiting ) ) ;
140138 continue ;
141139 }
142140
143- console . log (
144- `📦 Finalised on ${ para2Name } in block #${ parachainBlockAfter . number } : ${ parachainBlockAfter . hash } ` ,
145- ) ;
141+ console . log ( `📦 Finalised on ${ para2Name } in block #${ parachainBlockAfter . number } : ${ parachainBlockAfter . hash } ` ) ;
146142 const processedEvents = await para2Api . event . MessageQueue . Processed . pull ( ) ;
147143 const processingFailedEvents = await para2Api . event . MessageQueue . ProcessingFailed . pull ( ) ;
148144 if ( processedEvents . length > 0 ) {
Original file line number Diff line number Diff line change @@ -28049,16 +28049,12 @@ async function main() {
2804928049 const parachainBlockAfter = await para2Client.getFinalizedBlock();
2805028050 if (parachainBlockAfter.number == parachainBlockBefore.number) {
2805128051 const waiting = 1_000 * (i + 1);
28052- console.log(
28053- `⏳ Waiting ${waiting}ms for ${para2Name} block to be finalised (${i + 1}/${maxRetries})...`,
28054- );
28052+ console.log(`⏳ Waiting ${waiting}ms for ${para2Name} block to be finalised (${i + 1}/${maxRetries})...`);
2805528053 await new Promise((resolve) => setTimeout(resolve, waiting));
2805628054 continue;
2805728055 }
2805828056
28059- console.log(
28060- `📦 Finalised on ${para2Name} in block #${parachainBlockAfter.number}: ${parachainBlockAfter.hash}`,
28061- );
28057+ console.log(`📦 Finalised on ${para2Name} in block #${parachainBlockAfter.number}: ${parachainBlockAfter.hash}`);
2806228058 const processedEvents = await para2Api.event.MessageQueue.Processed.pull();
2806328059 const processingFailedEvents = await para2Api.event.MessageQueue.ProcessingFailed.pull();
2806428060 if (processedEvents.length > 0) {
You can’t perform that action at this time.
0 commit comments