File tree Expand file tree Collapse file tree 1 file changed +4
-29
lines changed
Expand file tree Collapse file tree 1 file changed +4
-29
lines changed Original file line number Diff line number Diff line change @@ -386,35 +386,6 @@ export async function playgroundHandler(args: HandlerArgs): Promise<void> {
386386 // let rcApi = await getApi("ws://localhost:9999");
387387 let rcApiNow = await getApi ( "ws://localhost:8000" ) ;
388388
389- // let ahApi = await getApi("wss://sys.ibp.network/asset-hub-westend");
390-
391- // let bn = (await api.query.system.number()).toNumber();
392- // while (true) {
393- // let h = await api.rpc.chain.getBlockHash(bn);
394- // console.log(`block number: ${bn} - hash ${h}`);
395-
396- // let apiAt = await getAtApi(args.ws, h.toHex());
397- // let mq = await apiAt.query.dmp.downwardMessageQueues(1000);
398- // //@ts -ignore
399- // console.log(`mq length: ${mq.length}`);
400- // let sums = {}
401- // //@ts -ignore
402- // mq.forEach((x) => {
403- // let b = x.sentAt;
404- // let l = x.msg.length;
405- // //@ts -ignore
406- // if (sums[b] === undefined) {
407- // //@ts -ignore
408- // sums[b] = 0;
409- // }
410- // //@ts -ignore
411- // sums[b] += l;
412- // //@ts -ignore
413- // })
414- // console.log(sums);
415- // bn -= 1;
416- // }
417-
418389 let ledgersRc = await rcApi . query . staking . ledger . entries ( ) ;
419390 let ledgerTxs = 0 ;
420391 let bondedRc = await rcApi . query . staking . bonded . entries ( ) ;
@@ -463,4 +434,8 @@ export async function playgroundHandler(args: HandlerArgs): Promise<void> {
463434 const sudo = rcApiNow . tx . sudo . sudo ( tx ) ;
464435 await sendAndFinalize ( sudo , signer )
465436 }
437+ for ( let tx of bondedBatchTx ) {
438+ const sudo = rcApiNow . tx . sudo . sudo ( tx ) ;
439+ await sendAndFinalize ( sudo , signer )
440+ }
466441}
You can’t perform that action at this time.
0 commit comments