This modifies the getblockchaininfo RPC handler to use the newly-exposed best header that is not known to be invalid from chain versus the height of the current best chain tip.
Package rpcserver includes all RPC server interfaces, types, and pieces of code pertaining to implementing the RPC server.
Package rpcserver is licensed under the copyfree ISC License.