Skip to content

Commit

Permalink
chore(synthetic-chain): Replace bare block height output in startAgd …
Browse files Browse the repository at this point in the history
…(merge #200)
  • Loading branch information
gibson042 authored Nov 20, 2024
2 parents fdcf661 + cc3e30d commit 075e8b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/synthetic-chain/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agoric/synthetic-chain",
"version": "0.4.3",
"version": "0.4.4",
"description": "Utilities to build a chain and test proposals atop it",
"bin": "dist/cli/cli.js",
"main": "./dist/lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ startAgd() {
agd start --log_level warn "$@" &
AGD_PID=$!
echo $AGD_PID >$HOME/.agoric/agd.pid
wait_for_bootstrap
echo "startAgd() at height $(wait_for_bootstrap | tr '\n' ' ' | sed 's/ $//; s/ /... /g;')"
waitForBlock 2
echo "startAgd() done"
}
Expand Down
16 changes: 8 additions & 8 deletions packages/synthetic-chain/src/lib/core-eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,8 @@ export const passCoreEvalProposal = async (
for (const { name, bundles, evals } of bundleInfos) {
console.log(
name,
evals[0].script,
evals.length,
'eval',
bundles.length,
'bundles',
evals.map(record => record.script),
`(bundle count: ${bundles.length})`,
);
}

Expand Down Expand Up @@ -119,7 +116,7 @@ export const passCoreEvalProposal = async (
await fsp.readFile(path.join(dir, fileName), 'utf8'),
);
const entry = await bundleEntry(bundle);
console.log(entry, fileName.slice(0, 'b1-12345'.length));
console.log(`${fileName.slice(0, 'b1-#####'.length)}...`, entry);
assert(entry.compartment);
assert(entry.module);
}
Expand Down Expand Up @@ -190,7 +187,7 @@ export const passCoreEvalProposal = async (
assert.equal(todo, done);
});

await step('core eval proposal passes', async () => {
await step('ensure core eval proposal passes', async () => {
const { agd, swingstore, config } = context;
const from = agd.lookup(config.proposer);
const { chainId, deposit } = config;
Expand Down Expand Up @@ -231,7 +228,10 @@ export const passCoreEvalProposal = async (
assert.equal(result.code, 0);

const detail = await voteLatestProposalAndWait(info.title);
console.log(detail.proposal_id, detail.voting_end_time, detail.status);
console.log(
`proposal ${detail.proposal_id} end ${detail.voting_end_time}`,
detail.status,
);
assert.equal(detail.status, 'PROPOSAL_STATUS_PASSED');
});
};
Expand Down

0 comments on commit 075e8b5

Please sign in to comment.