|
@ -469,9 +469,10 @@ func (idx *BlockerIndexer) indexEvents(batch dbm.Batch, events []abci.Event, typ |
|
|
|
|
|
|
|
|
// index iff the event specified index:true and it's not a reserved event
|
|
|
// index iff the event specified index:true and it's not a reserved event
|
|
|
compositeKey := fmt.Sprintf("%s.%s", event.Type, string(attr.Key)) |
|
|
compositeKey := fmt.Sprintf("%s.%s", event.Type, string(attr.Key)) |
|
|
if compositeKey == types.TxHashKey || compositeKey == types.TxHeightKey { |
|
|
|
|
|
|
|
|
if compositeKey == types.BlockHeightKey { |
|
|
return fmt.Errorf("event type and attribute key \"%s\" is reserved; please use a different key", compositeKey) |
|
|
return fmt.Errorf("event type and attribute key \"%s\" is reserved; please use a different key", compositeKey) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if attr.GetIndex() { |
|
|
if attr.GetIndex() { |
|
|
key, err := eventKey(compositeKey, typ, string(attr.Value), height) |
|
|
key, err := eventKey(compositeKey, typ, string(attr.Value), height) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|