Skip to content

Commit dd856cf

Browse files
committed
feat(cli): change default block to latest
1 parent bb69f3c commit dd856cf

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/spicy-bananas-hope.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cartesi/cli": major
3+
---
4+
5+
change default block to 'latest'

apps/cli/src/commands/rollups/start.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const createStartCommand = () => {
156156
"default block to be used when fetching new blocks.",
157157
)
158158
.choices(["latest", "safe", "pending", "finalized"])
159-
.default("finalized"),
159+
.default("latest"),
160160
)
161161
.addOption(
162162
new Option(
@@ -258,6 +258,13 @@ export const createStartCommand = () => {
258258
stdio: "inherit",
259259
});
260260
} else {
261+
if (defaultBlock !== "finalized") {
262+
console.warn(
263+
chalk.yellow(
264+
`WARNING: default block is set to '${defaultBlock}', production configuration will likely use 'finalized'`,
265+
),
266+
);
267+
}
261268
// pull images first
262269
await execa("docker", [...composeArgs, "pull"], {
263270
env,

0 commit comments

Comments
 (0)