Skip to content

Commit

Permalink
feat(cosmic-swingset): add begin block check and transaction (#8432)
Browse files Browse the repository at this point in the history
* feat(cosmic-swingset): add being block check and transaction

* fixup! feat(cosmic-swingset): add being block check and transaction

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mhofman and mergify[bot] committed Jan 13, 2024
1 parent 88009cc commit 3233ace
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cosmic-swingset/src/launch-chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,10 @@ export async function launch({
return undefined;
}

// Start a block transaction, but without changing state
// for the upcoming begin block check
saveBeginHeight(savedBeginHeight);

controller.writeSlogObject({
type: 'cosmic-swingset-upgrade-start',
blockHeight,
Expand Down

0 comments on commit 3233ace

Please sign in to comment.