Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit ad93138

Browse files
authored
Merge pull request #2928 from w3f/validator-indexes-2
Add Indexes to ValidatorSets queries - New
2 parents c32b1f2 + b7817a2 commit ad93138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/common/src/db/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export interface ValidatorSet {
143143
}
144144

145145
export const ValidatorSetSchema = new Schema({
146-
session: Number,
147-
era: Number,
146+
session: { type: Number, index: true },
147+
era: { type: Number, index: true },
148148
validators: [String],
149149
});
150150

0 commit comments

Comments
 (0)