Skip to content

Commit

Permalink
Updated addresses to be valid qtum addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjaenson committed Apr 5, 2017
1 parent e76584b commit a72c642
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qa/rpc-tests/disablewallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
from test_framework.address import convert_btc_address_to_qtum


class DisableWalletTest (BitcoinTestFramework):
Expand All @@ -27,12 +28,12 @@ def run_test (self):
# Check regression: https://github.com/bitcoin/bitcoin/issues/6963#issuecomment-154548880
x = self.nodes[0].validateaddress('3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy')
assert(x['isvalid'] == False)
x = self.nodes[0].validateaddress('mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ')
x = self.nodes[0].validateaddress(convert_btc_address_to_qtum('mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ'))
assert(x['isvalid'] == True)

# Checking mining to an address without a wallet
try:
self.nodes[0].generatetoaddress(1, 'mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ')
self.nodes[0].generatetoaddress(1, convert_btc_address_to_qtum('mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ'))
except JSONRPCException as e:
assert("Invalid address" not in e.error['message'])
assert("ProcessNewBlock, block not accepted" not in e.error['message'])
Expand Down

0 comments on commit a72c642

Please sign in to comment.