Skip to content

Commit

Permalink
feat: debug logs on runtime upgrade test (#4556)
Browse files Browse the repository at this point in the history
* feat: debug logs on runtime upgrade test

* linter

---------

Co-authored-by: Martin Rieke <martin@chainflip.io>
  • Loading branch information
dandanlen and martin-chainflip authored Feb 23, 2024
1 parent 38f4443 commit 415a34c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bouncer/commands/check_witnesses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import { blake2AsHex } from '@polkadot/util-crypto';
import { runWithTimeout, sleep, getChainflipApi } from '../shared/utils';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const witnessHash = new Set<any>();
function hashCall(extrinsic: SubmittableExtrinsic<'promise', ISubmittableResult>) {
const blakeHash = blake2AsHex(extrinsic.method.toU8a(), 256);
Expand Down Expand Up @@ -48,6 +49,7 @@ async function main(): Promise<void> {
console.log(currentBlockNumber);
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
signedBlock.block.extrinsics.forEach((ex: any, _index: any) => {
if (ex.toHuman().method.method === 'witnessAtEpoch') {
const callData = ex.toHuman().method.args.call;
Expand Down
1 change: 1 addition & 0 deletions bouncer/shared/try_runtime_upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function tryRuntimeCommand(runtimePath: string, blockParam: string, networkUrl:
try {
execSync(
`try-runtime --runtime ${runtimePath} on-runtime-upgrade --disable-spec-version-check --disable-idempotency-checks --checks all ${blockParam} --uri ${networkUrl} 2> ${stderrFile}`,
{ env: { ...process.env, RUST_LOG: 'runtime::executive=debug' } },
);
console.log(`try-runtime success for blockParam ${blockParam}`);
} catch (e) {
Expand Down

0 comments on commit 415a34c

Please sign in to comment.