@ -745,7 +745,7 @@ UniValue ProcessImport(CWallet * const pwallet, const UniValue& data, const int6
pwallet - > MarkDirty ( ) ;
pwallet - > MarkDirty ( ) ;
if ( ! pwallet - > HaveWatchOnly ( redeemScript ) & & ! pwallet - > AddWatchOnly ( redeemScript , timestamp ) ) {
if ( ! pwallet - > AddWatchOnly ( redeemScript , timestamp ) ) {
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
}
}
@ -762,7 +762,7 @@ UniValue ProcessImport(CWallet * const pwallet, const UniValue& data, const int6
pwallet - > MarkDirty ( ) ;
pwallet - > MarkDirty ( ) ;
if ( ! pwallet - > HaveWatchOnly ( redeemDestination ) & & ! pwallet - > AddWatchOnly ( redeemDestination , timestamp ) ) {
if ( ! pwallet - > AddWatchOnly ( redeemDestination , timestamp ) ) {
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
}
}
@ -855,7 +855,7 @@ UniValue ProcessImport(CWallet * const pwallet, const UniValue& data, const int6
pwallet - > MarkDirty ( ) ;
pwallet - > MarkDirty ( ) ;
if ( ! pwallet - > HaveWatchOnly ( pubKeyScript ) & & ! pwallet - > AddWatchOnly ( pubKeyScript , timestamp ) ) {
if ( ! pwallet - > AddWatchOnly ( pubKeyScript , timestamp ) ) {
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
}
}
@ -873,7 +873,7 @@ UniValue ProcessImport(CWallet * const pwallet, const UniValue& data, const int6
pwallet - > MarkDirty ( ) ;
pwallet - > MarkDirty ( ) ;
if ( ! pwallet - > HaveWatchOnly ( scriptRawPubKey ) & & ! pwallet - > AddWatchOnly ( scriptRawPubKey , timestamp ) ) {
if ( ! pwallet - > AddWatchOnly ( scriptRawPubKey , timestamp ) ) {
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
}
}
@ -947,7 +947,7 @@ UniValue ProcessImport(CWallet * const pwallet, const UniValue& data, const int6
pwallet - > MarkDirty ( ) ;
pwallet - > MarkDirty ( ) ;
if ( ! pwallet - > HaveWatchOnly ( script ) & & ! pwallet - > AddWatchOnly ( script , timestamp ) ) {
if ( ! pwallet - > AddWatchOnly ( script , timestamp ) ) {
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
throw JSONRPCError ( RPC_WALLET_ERROR , " Error adding address to wallet " ) ;
}
}