Checks if a protocol version is modern by comparing against the first modern version threshold. Used widely to gate modern protocol behavior.
export function isModernProtocolVersion(version: string): boolean {
return version >= FIRST_MODERN_PROTOCOL_VERSION;
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key