Skip to content

Commit

Permalink
fix: force --pruning=nothing until we upgrade to Stargate
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 26, 2020
1 parent f1342b4 commit 9a3d54b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/agoric-cli/lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export default async function startMain(progname, rawArgs, powers, opts) {
]);

return chainSpawn(
[...debugOpts, 'start', '--pruning=nothing'],
[...debugOpts, 'start'],
{
env: { ...pspawnEnv, ROLE: 'two_chain' },
},
Expand Down
6 changes: 5 additions & 1 deletion packages/cosmic-swingset/lib/daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ func makeNewApp(sendToController Sender) func(logger log.Logger, db dbm.DB, trac
return app.NewAgoricApp(
sendToController, logger, db, traceStore, true, invCheckPeriod, skipUpgradeHeights,
viper.GetString(flags.FlagHome),
baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
// FIGME: instead use:
// baseapp.SetPruning(store.NewPruningOptionsFromString(viper.GetString("pruning"))),
// but for now, the default cosmos-sdk pruning doesn't keep the last
// N committed blocks on disk, so we only rarely can recover from restarts.
baseapp.SetPruning(store.PruneNothing),
baseapp.SetMinGasPrices(viper.GetString(server.FlagMinGasPrices)),
baseapp.SetHaltHeight(viper.GetUint64(server.FlagHaltHeight)),
baseapp.SetHaltTime(viper.GetUint64(server.FlagHaltTime)),
Expand Down
2 changes: 1 addition & 1 deletion packages/deployment/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ show-config display the client connection parameters
'play',
'install',
`-eexecline=${shellEscape(
'/usr/src/cosmic-swingset/bin/ag-chain-cosmos start --pruning=nothing',
'/usr/src/cosmic-swingset/bin/ag-chain-cosmos start',
)}`,
]),
);
Expand Down

0 comments on commit 9a3d54b

Please sign in to comment.