Browse Source

Rename 'r' to 'response'

3.2.x
Harm Aarts 7 years ago
parent
commit
48356a03e6
  1. 10
      lib/verifier.py

10
lib/verifier.py

@ -72,14 +72,14 @@ class SPV(ThreadJob):
self.blockchain = self.network.blockchain()
self.undo_verifications()
def verify_merkle(self, r):
def verify_merkle(self, response):
if self.wallet.verifier is None:
return # we have been killed, this was just an orphan callback
if r.get('error'):
self.print_error('received an error:', r)
if response.get('error'):
self.print_error('received an error:', response)
return
params = r['params']
merkle = r['result']
params = response['params']
merkle = response['result']
# Verify the hash of the server-provided merkle branch to a
# transaction matches the merkle root of its block
tx_hash = params[0]

Loading…
Cancel
Save