Skip to content

Commit

Permalink
refactor(core): core review (1/n) (#21193)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Aug 7, 2024
1 parent 6b4557d commit 72e77c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion core/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type QueryResponse struct {
Value []byte
}

type BlockRequest[T any] struct {
type BlockRequest[T transaction.Tx] struct {
Height uint64
Time time.Time
Hash []byte
Expand Down
23 changes: 0 additions & 23 deletions core/store/database.go

This file was deleted.

2 changes: 2 additions & 0 deletions core/store/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type MemoryStoreService interface {
// TransientStoreService represents a unique, non-forgeable handle to a memory-backed
// KVStore which is reset at the start of every block. It should be provided as
// a module-scoped dependency by the runtime module being used to build the app.
// WARNING: This service is not available in server/v2 apps. Store/v2 does not support
// transient stores.
type TransientStoreService interface {
// OpenTransientStore retrieves the transient store from the context.
OpenTransientStore(context.Context) KVStore
Expand Down

0 comments on commit 72e77c3

Please sign in to comment.