diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-10-20 20:21:11 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-10-20 20:27:37 +0200 |
| commit | 0e228557f239d8e43bf94b19b3a96240e7a75359 (patch) | |
| tree | 7dc4be0f525346fccb7d9cfb0fae1b94ed6a2aa3 /src/wallet | |
| parent | Merge #7551: Add importmulti RPC call (diff) | |
| parent | RPC: importmulti: Avoid using boost::variant::operator!=, which is only in ne... (diff) | |
| download | discoin-0e228557f239d8e43bf94b19b3a96240e7a75359.tar.xz discoin-0e228557f239d8e43bf94b19b3a96240e7a75359.zip | |
Merge #8980: RPC: importmulti: Avoid using boost::variant::operator!=, which is only in newer boost versions
7942d31 RPC: importmulti: Avoid using boost::variant::operator!=, which is only in newer boost versions (Luke Dashjr)
Diffstat (limited to 'src/wallet')
| -rw-r--r-- | src/wallet/rpcdump.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 7b16b4adf..b638810e9 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -808,7 +808,7 @@ UniValue processImport(const UniValue& data) { CBitcoinAddress pubKeyAddress = CBitcoinAddress(pubKey.GetID()); // Consistency check. - if (!isScript && pubKeyAddress.Get() != address.Get()) { + if (!isScript && !(pubKeyAddress.Get() == address.Get())) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Consistency check failed"); } @@ -819,7 +819,7 @@ UniValue processImport(const UniValue& data) { if (ExtractDestination(script, destination)) { scriptAddress = CBitcoinAddress(destination); - if (scriptAddress.Get() != pubKeyAddress.Get()) { + if (!(scriptAddress.Get() == pubKeyAddress.Get())) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Consistency check failed"); } } @@ -881,7 +881,7 @@ UniValue processImport(const UniValue& data) { CBitcoinAddress pubKeyAddress = CBitcoinAddress(pubKey.GetID()); // Consistency check. - if (!isScript && pubKeyAddress.Get() != address.Get()) { + if (!isScript && !(pubKeyAddress.Get() == address.Get())) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Consistency check failed"); } @@ -892,7 +892,7 @@ UniValue processImport(const UniValue& data) { if (ExtractDestination(script, destination)) { scriptAddress = CBitcoinAddress(destination); - if (scriptAddress.Get() != pubKeyAddress.Get()) { + if (!(scriptAddress.Get() == pubKeyAddress.Get())) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Consistency check failed"); } } |