https://travis-ci.org/github/bitcoin/bitcoin/jobs/680452476#L6107
{
public:
    uint256 hash;
    bool found;
    BlockValidationState state;
    explicit submitblock_StateCatcher(const uint256 &hashIn) : hash(hashIn), found(false), state() {}
protected:
    void BlockChecked(const CBlock& block, const BlockValidationState& stateIn) override {
        if (block.GetHash() != hash)
            return;
        found = true;
        state = stateIn;
    }
};
static RPCHelpMan submitblock()