mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
RPC: importmulti: Avoid using boost::variant::operator!=, which is only in newer boost versions
This commit is contained in:
parent
f2d705629b
commit
7942d31d5f
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user