Fix SignersContainer::find to filter out incorrect IDs
This commit is contained in:
parent
2658a9b05a
commit
c58236fcd7
@ -403,8 +403,9 @@ impl SignersContainer {
|
|||||||
self.0
|
self.0
|
||||||
.range((
|
.range((
|
||||||
Included(&(id.clone(), SignerOrdering(0)).into()),
|
Included(&(id.clone(), SignerOrdering(0)).into()),
|
||||||
Included(&(id, SignerOrdering(usize::MAX)).into()),
|
Included(&(id.clone(), SignerOrdering(usize::MAX)).into()),
|
||||||
))
|
))
|
||||||
|
.filter(|(k, _)| k.id == id)
|
||||||
.map(|(_, v)| v)
|
.map(|(_, v)| v)
|
||||||
.next()
|
.next()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user