From 536229d170e6e2d4b8758ed0e974c72b0ae61e91 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 31 Dec 2018 13:57:58 +0100 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: codablock --- src/instantx.cpp | 1 - src/privatesend.cpp | 4 ---- src/rpc/masternode.cpp | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/instantx.cpp b/src/instantx.cpp index dbe7e848ea2e7..408d3dbccfb2c 100644 --- a/src/instantx.cpp +++ b/src/instantx.cpp @@ -1126,7 +1126,6 @@ bool CTxLockVote::CheckSignature() const bool CTxLockVote::Sign() { - std::string strError; uint256 hash = GetSignatureHash(); diff --git a/src/privatesend.cpp b/src/privatesend.cpp index 2f7e6f12224ca..da06c49ab9f81 100644 --- a/src/privatesend.cpp +++ b/src/privatesend.cpp @@ -50,7 +50,6 @@ bool CPrivateSendQueue::Sign() { if (!fMasternodeMode) return false; - std::string strError = ""; uint256 hash = GetSignatureHash(); CBLSSignature sig = activeMasternodeInfo.blsKeyOperator->Sign(hash); @@ -64,7 +63,6 @@ bool CPrivateSendQueue::Sign() bool CPrivateSendQueue::CheckSignature(const CBLSPublicKey& blsPubKey) const { - std::string strError = ""; uint256 hash = GetSignatureHash(); CBLSSignature sig; @@ -96,7 +94,6 @@ bool CPrivateSendBroadcastTx::Sign() { if (!fMasternodeMode) return false; - std::string strError = ""; uint256 hash = GetSignatureHash(); @@ -111,7 +108,6 @@ bool CPrivateSendBroadcastTx::Sign() bool CPrivateSendBroadcastTx::CheckSignature(const CBLSPublicKey& blsPubKey) const { - std::string strError = ""; uint256 hash = GetSignatureHash(); diff --git a/src/rpc/masternode.cpp b/src/rpc/masternode.cpp index ed1ceaf2ed25f..162b81458b9ad 100644 --- a/src/rpc/masternode.cpp +++ b/src/rpc/masternode.cpp @@ -148,7 +148,7 @@ void masternode_list_help() " partial match)\n" " keyid - Print the masternode (not collateral) key id\n" " rank - Print rank of a masternode based on current block\n" - " status - Print masternode status: ENABED / POSE_BAN / OUTPOINT_SPENT\n" + " status - Print masternode status: ENABLED / POSE_BAN / OUTPOINT_SPENT\n" " (can be additionally filtered, partial match)\n" ); }