Skip to content

Commit 6f45432

Browse files
committed
refactor: removed unused SignSpecialTxPayloadByString
1 parent 30381ac commit 6f45432

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/rpc/evo.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,6 @@ static void SignSpecialTxPayloadByHash(const CMutableTransaction& tx, SpecialTxP
305305
}
306306
}
307307

308-
template<typename SpecialTxPayload>
309-
static void SignSpecialTxPayloadByString(const CMutableTransaction& tx, SpecialTxPayload& payload, const CKey& key)
310-
{
311-
UpdateSpecialTxInputsHash(tx, payload);
312-
payload.vchSig.clear();
313-
314-
std::string m = payload.MakeSignString();
315-
if (!CMessageSigner::SignMessage(m, payload.vchSig, key)) {
316-
throw JSONRPCError(RPC_INTERNAL_ERROR, "failed to sign special tx");
317-
}
318-
}
319-
320308
template<typename SpecialTxPayload>
321309
static void SignSpecialTxPayloadByHash(const CMutableTransaction& tx, SpecialTxPayload& payload, const CBLSSecretKey& key)
322310
{

0 commit comments

Comments
 (0)