Should also include a check that from < to. Having worked on a bunch of networking, the pain of debugging simple coding errors like a mix up between ranges can be hell and not worth the time, hence insure future selves by simply returning an error when from >= to
https://github.com/celestiaorg/go-header/blob/18f0eb1c5d3aeab6476123da0dad57e82c067984/p2p/server.go#L200-L203
Should also include a check that from < to. Having worked on a bunch of networking, the pain of debugging simple coding errors like a mix up between ranges can be hell and not worth the time, hence insure future selves by simply returning an error when from >= to
Kindly cc-ing @Wondertan