Skip to content

Commit

Permalink
Minor lint fixes for 1.7.x (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored May 17, 2021
1 parent 4feeddf commit 38a7fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion test/functional/feature_auth_return_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def check_auto_auth_txs(self, tx, owner, outputs = 2):
decTx = self.nodes[0].getrawtransaction(tx)
customTx = self.nodes[0].decodecustomtx(decTx)
vouts = 2
if customTx['type'] == 'ResignMasternode': vouts = 3
if customTx['type'] == 'ResignMasternode':
vouts = 3
assert_equal(len(auth_tx['vout']), vouts)

# Two outputs, single input and change to auth address on final TX
Expand Down
5 changes: 0 additions & 5 deletions test/functional/feature_criminals.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ def dumphashes(self, nodes=None, block = None):
bl = self.nodes[i].getblockcount() if block is None else block
print ("Node%d: [%d] %s" % (i, bl, self.nodes[i].getblockhash(bl)))

def dumpheights(self):
print ("Heights:", self.nodes[0].getblockcount(), "\t", self.nodes[1].getblockcount(), "\t", self.nodes[2].getblockcount())
# pass

def erase_node(self, n):
os.remove(os.path.join(self.nodes[n].datadir, 'regtest', 'wallets', 'wallet.dat'))
shutil.rmtree(os.path.join(self.nodes[n].datadir, 'regtest', 'blocks'))
Expand Down Expand Up @@ -82,7 +78,6 @@ def run_test(self):
assert_equal(self.nodes[1].listmasternodes()[node0id]['state'], "PRE_BANNED")
# proofs cleared:
assert_equal(len(self.nodes[1].listcriminalproofs()), 0)
# self.dumpheights()

print ("Test revert of ban tx")
self.nodes[2].generate(5)
Expand Down

0 comments on commit 38a7fe3

Please sign in to comment.