Skip to content

Commit

Permalink
util: Remove obsolete check
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl committed Oct 23, 2023
1 parent 8fc1bfa commit b405684
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/rpc/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit b405684

Please sign in to comment.