Skip to content

Commit

Permalink
Merge pull request #148 from commerceblock/debug-multisig
Browse files Browse the repository at this point in the history
Removed debug prints from RPC test
  • Loading branch information
lawlawlaw authored Jun 21, 2019
2 parents d7a3829 + a862e6f commit 6957f9d
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions qa/rpc-tests/onboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def setup_network(self, split=False):
#Set up wallet path and dump the wallet
wlwalletname="wlwallet.dat"
wlwalletpath=os.path.join(self.options.tmpdir,wlwalletname)
print(self.options.tmpdir)
time.sleep(5)
self.nodes[0].backupwallet(wlwalletpath)

Expand All @@ -86,9 +85,6 @@ def setup_network(self, split=False):
shutil.copyfile(wlwalletpath,dest0)
shutil.copyfile(wlwalletpath,dest2)

print(node2path)
print(wlwalletpath)
print(dest0)
time.sleep(5)

#Start the nodes again with a different wallet path argument
Expand All @@ -101,8 +97,7 @@ def setup_network(self, split=False):
#Node0 and node2 wallets should be the same
addr0=self.nodes[0].getnewaddress()
addr2=self.nodes[2].getnewaddress()
print(addr0)
print(addr2)

assert(addr0 == addr2)

connect_nodes_bi(self.nodes,0,1)
Expand Down Expand Up @@ -236,8 +231,7 @@ def run_test (self):

bal1=self.nodes[1].getwalletinfo()["balance"]["CBT"]

print(bal1)
print(ntosend)

assert_equal(float(bal1),float(ntosend))

#Restart the nodes. The whitelist will be restored. TODO
Expand Down Expand Up @@ -455,9 +449,6 @@ def run_test (self):
len0=len(set0)
len2=len(set2)

if len0 != len2:
print("len0: " + str(len0))
print("len2: " + str(len2))

assert(len0 == len2)

Expand All @@ -467,13 +458,6 @@ def run_test (self):
lendiff0 = len(diff0)
lendiff2 = len(diff2)


if lendiff0 > 0:
print(diff0)

if lendiff2 > 0:
print(diff2)

assert(lendiff0 == 0)
assert(lendiff2 == 0)

Expand Down

0 comments on commit 6957f9d

Please sign in to comment.