Skip to content

Commit

Permalink
Merge pull request #792 from oasisprotocol/pro-wh/feature/unbump
Browse files Browse the repository at this point in the history
Revert "storage: bump consensus RegistryEvents cache key"
  • Loading branch information
pro-wh authored Oct 24, 2024
2 parents cd97658 + c2c81c5 commit 3a8f327
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
1 change: 1 addition & 0 deletions .changelog/792.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Revert "storage: bump consensus RegistryEvents cache key"
3 changes: 1 addition & 2 deletions storage/oasis/nodeapi/file/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ func (c *FileConsensusApiLite) GetEpoch(ctx context.Context, height int64) (beac
func (c *FileConsensusApiLite) RegistryEvents(ctx context.Context, height int64) ([]nodeapi.Event, error) {
return kvstore.GetSliceFromCacheOrCall(
c.db, height == consensus.HeightLatest,
// v2: Renamed some event fields.
kvstore.GenerateCacheKey("RegistryEvents.v2", height),
kvstore.GenerateCacheKey("RegistryEvents", height),
func() ([]nodeapi.Event, error) { return c.consensusApi.RegistryEvents(ctx, height) },
)
}
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e_regression/damask/rpc-cache/consensus/00000-1.psg
Git LFS file not shown
Binary file modified tests/e2e_regression/damask/rpc-cache/consensus/00000-1.psg.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/damask/rpc-cache/consensus/db.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/damask/rpc-cache/consensus/index.pmt
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/e2e_regression/damask/rpc-cache/consensus/main.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/damask/rpc-cache/consensus/overflow.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/consensus/00000-1.psg
Git LFS file not shown
Binary file modified tests/e2e_regression/eden/rpc-cache/consensus/00000-1.psg.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/eden/rpc-cache/consensus/db.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/eden/rpc-cache/consensus/index.pmt
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/consensus/main.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/consensus/overflow.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/edenfast/rpc-cache/consensus/00000-1.psg
Git LFS file not shown
Binary file not shown.
Binary file modified tests/e2e_regression/edenfast/rpc-cache/consensus/db.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/edenfast/rpc-cache/consensus/index.pmt
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/e2e_regression/edenfast/rpc-cache/consensus/main.pix
Git LFS file not shown
Git LFS file not shown

0 comments on commit 3a8f327

Please sign in to comment.