You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i try to compile the wallet, and get:
messagesigner.cpp: In static member function ‘static bool CHashSigner::VerifyHash(const uint256&, const CTxDestination&, const std::vector&, std::string&)’:
messagesigner.cpp:79:16: error: no match for ‘operator!=’ (operand types are ‘const CTxDestination {aka const boost::variant<CNoDestination, CKeyID, CScriptID, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessUnknown>}’ and ‘CTxDestination {aka boost::variant<CNoDestination, CKeyID, CScriptID, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessUnknown>}’)
there seems to be operator == , but != missing.
fix is easy by replacing "a != b" with " ! ( a == b ) ". See diff at the end.
i try to compile the wallet, and get:
messagesigner.cpp: In static member function ‘static bool CHashSigner::VerifyHash(const uint256&, const CTxDestination&, const std::vector&, std::string&)’:
messagesigner.cpp:79:16: error: no match for ‘operator!=’ (operand types are ‘const CTxDestination {aka const boost::variant<CNoDestination, CKeyID, CScriptID, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessUnknown>}’ and ‘CTxDestination {aka boost::variant<CNoDestination, CKeyID, CScriptID, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessUnknown>}’)
there seems to be operator == , but != missing.
fix is easy by replacing "a != b" with " ! ( a == b ) ". See diff at the end.
export BDB_PREFIX=/root/src/db-4.8.30.NC/build_unix/build/
export CPPFLAGS="-I${BDB_PREFIX}/include/ -O2"
export LDFLAGS="-L${BDB_PREFIX}/lib/"
export CXXFLAGS="${CPPFLAGS}"
./autogen.sh && ./configure && make
here is git diff that fix the issue
diff --git a/src/key_io.cpp b/src/key_io.cpp
index 55198f0..9b78dc0 100644
--- a/src/key_io.cpp
+++ b/src/key_io.cpp
@@ -284,7 +284,7 @@ bool CBitcoinAddress::operator==(const CBitcoinAddress &rhs) const
bool CBitcoinAddress::operator!=(const CBitcoinAddress &rhs) const
{
}
bool CBitcoinAddress::operator<(const CBitcoinAddress &rhs) const
diff --git a/src/messagesigner.cpp b/src/messagesigner.cpp
index 18804b4..5fc9c53 100644
--- a/src/messagesigner.cpp
+++ b/src/messagesigner.cpp
@@ -76,7 +76,7 @@ bool CHashSigner::VerifyHash(const uint256& hash, const CTxDestination &address,
return false;
}
strErrorRet = strprintf("Addresses don't match: address=%s, addressFromSig=%s, hash=%s, vchSig=%s",
EncodeDestination(address), EncodeDestination(recoveredAddress), hash.ToString(),
EncodeBase64(&vchSig[0], vchSig.size()));
The text was updated successfully, but these errors were encountered: