Rework RecentDisputes
and ActiveDisputes
to return disputes in BTreeMap
/BTreeSet
instead of Vec
#782
Labels
I3-annoyance
The node behaves within expectations, however this “expected behaviour” itself is at issue.
When
disputes-coordinator
handlesRecentDisputes
andActiveDisputes
it convertsBTreeMap
toVec
in order to pass disputes toprovisioner
. The latter on the other hand converts theVec
toBTreeMap
because it needs the disputes de-duplicated and sorted. This is suboptimal.Rework the messages to use
BTreeMap
(forRecentDisputes
) andBTreeSet
for active disputes. If necessary rework alsoQueryCandidateVotes
to use BTreeSet instead of aVec
.This issue is a followup from paritytech/polkadot#5567 (comment)
The text was updated successfully, but these errors were encountered: