See: * https://github.com/bitcoin/bitcoin/pull/15946/files#r281221080 * https://github.com/bitcoin/bitcoin/pull/21030#issuecomment-771384797