Skip to content

Commit 9a3d54b

Browse files
committed
fix: force --pruning=nothing until we upgrade to Stargate
1 parent f1342b4 commit 9a3d54b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/agoric-cli/lib/start.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
334334
]);
335335

336336
return chainSpawn(
337-
[...debugOpts, 'start', '--pruning=nothing'],
337+
[...debugOpts, 'start'],
338338
{
339339
env: { ...pspawnEnv, ROLE: 'two_chain' },
340340
},

packages/cosmic-swingset/lib/daemon/main.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ func makeNewApp(sendToController Sender) func(logger log.Logger, db dbm.DB, trac
108108
return app.NewAgoricApp(
109109
sendToController, logger, db, traceStore, true, invCheckPeriod, skipUpgradeHeights,
110110
viper.GetString(flags.FlagHome),
111-
baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
111+
// FIGME: instead use:
112+
// baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
113+
// but for now, the default cosmos-sdk pruning doesn't keep the last
114+
// N committed blocks on disk, so we only rarely can recover from restarts.
115+
baseapp.SetPruning(store.PruneNothing),
112116
baseapp.SetMinGasPrices(viper.GetString(server.FlagMinGasPrices)),
113117
baseapp.SetHaltHeight(viper.GetUint64(server.FlagHaltHeight)),
114118
baseapp.SetHaltTime(viper.GetUint64(server.FlagHaltTime)),

packages/deployment/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ show-config display the client connection parameters
436436
'play',
437437
'install',
438438
`-eexecline=${shellEscape(
439-
'/usr/src/cosmic-swingset/bin/ag-chain-cosmos start --pruning=nothing',
439+
'/usr/src/cosmic-swingset/bin/ag-chain-cosmos start',
440440
)}`,
441441
]),
442442
);

0 commit comments

Comments
 (0)