Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed Dec 14, 2018
1 parent a30c954 commit 0255308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions test/functional/mining_signet.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ def skip_test_if_missing_module(self):
self.skip_if_no_wallet()

def run_test(self):
n1 = self.nodes[0]
n2 = self.nodes[1]
node = n1
node = self.nodes[0]

# give the privkey to node 1 so it can sign
n1.importprivkey(private_key)
node.importprivkey(private_key)
self.log.info('Imported network private key')
self.log.info('address: %s, privkey: %s' % (address, n1.dumpprivkey(address)))
self.log.info('address: %s, privkey: %s' % (address, node.dumpprivkey(address)))

self.log.info('getmininginfo')
mining_info = node.getmininginfo()
Expand Down
4 changes: 2 additions & 2 deletions test/functional/test_framework/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ def deser_sol(f):
rem = SOLUTION_LEN - nit - len(ser_compact_size(nit))
r = f.read(nit)
if rem > 0:
t = f.read(rem)
f.read(rem)
return r

def ser_sol(s):
t = s
rem = SOLUTION_LEN - len(ser_compact_size(len(s))) + len(s)
rem = SOLUTION_LEN - len(s) - len(ser_compact_size(len(s)))
while rem > 0:
t = t + b" "
rem = rem - 1
Expand Down

0 comments on commit 0255308

Please sign in to comment.