From b405684d24dfa7fe9fae2ca69dd6b8eeec0887ed Mon Sep 17 00:00:00 2001 From: Prasanna Loganathar Date: Mon, 23 Oct 2023 14:17:03 +0800 Subject: [PATCH] util: Remove obsolete check --- src/rpc/util.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index c1bbd27801..305f242848 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -158,9 +158,6 @@ CPubKey AddrToPubKey(FillableSigningProvider* const keystore, const std::string& if (!keystore->GetPubKey(key, vchPubKey)) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("no full public key for address %s", addr_in)); } - if (dest.index() == WitV16KeyEthHashType && vchPubKey.IsCompressed()) { - throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("no valid public key for address %s", addr_in)); - } if (!vchPubKey.IsFullyValid()) { throw JSONRPCError(RPC_INTERNAL_ERROR, "Wallet contains an invalid public key"); }