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
# This will raise an exception for importing an address with the PS2H flag
341
+
temp_address=self.nodes[1].getnewaddress()
342
+
assert_raises_rpc_error(-5, "Cannot use the p2sh flag with an address - use a script instead", self.nodes[0].importaddress, temp_address, "label", False, True)
343
+
344
+
# This will raise an exception for attempting to dump the private key of an address you do not own
345
+
assert_raises_rpc_error(-3, "Address does not refer to a key", self.nodes[0].dumpprivkey, temp_address)
346
+
347
+
# This will raise an exception for attempting to get the private key of an invalid Bitcoin address
0 commit comments