This replaces the fingerprints of the trusted keys which are subkeys by the fingerprint of their root key and then relaxes verify-commits to accept the root key or any of its subkeys.
Stolen from #9880 @laanwj This should fix the travis issue. You can merge the same branch to master via https://github.com/bitcoin/bitcoin/compare/master...MarcoFalke:Mf1703-verifySubkeys