Skip to content

Commit

Permalink
refactor: removed unused SignSpecialTxPayloadByString
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Jun 17, 2024
1 parent 30381ac commit 6f45432
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/rpc/evo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,6 @@ static void SignSpecialTxPayloadByHash(const CMutableTransaction& tx, SpecialTxP
}
}

template<typename SpecialTxPayload>
static void SignSpecialTxPayloadByString(const CMutableTransaction& tx, SpecialTxPayload& payload, const CKey& key)
{
UpdateSpecialTxInputsHash(tx, payload);
payload.vchSig.clear();

std::string m = payload.MakeSignString();
if (!CMessageSigner::SignMessage(m, payload.vchSig, key)) {
throw JSONRPCError(RPC_INTERNAL_ERROR, "failed to sign special tx");
}
}

template<typename SpecialTxPayload>
static void SignSpecialTxPayloadByHash(const CMutableTransaction& tx, SpecialTxPayload& payload, const CBLSSecretKey& key)
{
Expand Down

0 comments on commit 6f45432

Please sign in to comment.