Skip to content

Commit

Permalink
fix: small tweaks needed for agorictest-8
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Apr 14, 2021
1 parent 0c971ab commit b8d2ec0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ REFERENCES TO YOUR TAGS.
./scripts/get-released-tags git push origin
```

To make validators' lives easier, create a tag for the chain-id:

```sh
SDK_VERSION=2.17.0 # Set this as necessary
CHAIN_ID=agoricstage-4 # Also change this
git tag -s -m "release $CHAIN_ID" $CHAIN_ID @agoric/sdk@$SDK_VERSION^{}
git push origin $CHAIN_ID
```

## More subtlety

To get help for the command-line options that will affect these commands, use:
Expand Down
1 change: 1 addition & 0 deletions packages/agoric-cli/lib/chain-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export function finishCosmosGenesis({ genesisJson, exportedGenesisJson }) {
// TODO: This needs much more support to preserve contract state
// between exports in order to be able to carry forward IBC conns.
genesis.app_state.ibc = initState.ibc;
genesis.app_state.capability = initState.capability;

genesis.app_state.staking.params.bond_denom = STAKING_DENOM;
genesis.app_state.staking.params.max_validators = STAKING_MAX_VALIDATORS;
Expand Down
1 change: 1 addition & 0 deletions packages/cosmic-swingset/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build
*.iml
node_modules
t[0-9]/
t[0-9].*/

ve[0-9]/
ve[0-9]-client/
Expand Down
6 changes: 3 additions & 3 deletions packages/cosmic-swingset/lib/block-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ export default function makeBlockManager({
if (!deepEquals(currentActions, savedActions)) {
// We only handle the trivial case.
const restoreHeight = action.blockHeight - 1;
// We can reset from 0 to anything, since that's what happens
// when genesis.initial_height !== "0".
if (computedHeight !== 0 && restoreHeight !== computedHeight) {
// We can reset from -1 or 0 to anything, since that's what happens
// when genesis.initial_height !== "1".
if (computedHeight > 0 && restoreHeight !== computedHeight) {
// Keep throwing forever.
decohered = Error(
// TODO unimplemented
Expand Down

0 comments on commit b8d2ec0

Please sign in to comment.