Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Jan 29, 2024
1 parent 07c167e commit 86ec342
Show file tree
Hide file tree
Showing 4 changed files with 776 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,9 @@ type TxIndexConfig struct {
// 2) "kv" (default) - the simplest possible indexer,
// backed by key-value storage (defaults to levelDB; see DBBackend).
// 3) "psql" - the indexer services backed by PostgreSQL.
// 4) "kv_v2" - a key-value indexer that stores a subset of the information that "kv" stores.
// key: tx hash
// value: object { tx height (int64) tx index (int64) commited (boolean) }
Indexer string `mapstructure:"indexer"`

// The PostgreSQL connection configuration, the connection format:
Expand Down
7 changes: 7 additions & 0 deletions proto/tendermint/abci/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,13 @@ message TxResult {
ResponseDeliverTx result = 4 [(gogoproto.nullable) = false];
}

// KvV2Value
message KvV2Value {
int64 height = 1;
int64 index = 2;
bool committed = 3;
}

//----------------------------------------
// Blockchain Types

Expand Down
Loading

0 comments on commit 86ec342

Please sign in to comment.