I noticed the docs still used the array syntax. I've also added a couple of ProtocolCollection named constructors for quickly creating collections of just one protocol version (i.e. to avoid needing to do something like new ProtocolCollection(new Version2) now it's ProtocolCollection::v2()).
Q: should ProtocolCollection::default() only permit version2? At present it adds all whitelisted protocols (see ef441b0).
I noticed the docs still used the array syntax. I've also added a couple of
ProtocolCollection
named constructors for quickly creating collections of just one protocol version (i.e. to avoid needing to do something likenew ProtocolCollection(new Version2)
now it'sProtocolCollection::v2()
).Q: should ProtocolCollection::default() only permit version2? At present it adds all whitelisted protocols (see ef441b0).