test/functional/test_framework/wallet.py
def scan_blocks(self, *, start=1, num):
        """Scan the blocks for self._address outputs and add them to self._utxos"""
        for i in range(start, start + num):
            block = self._test_node.getblock(blockhash=self._test_node.getblockhash(i), verbosity=2)
            for tx in block['tx']:
                for out in tx['vout']:
                    if out['scriptPubKey']['hex'] == self._scriptPubKey.hex():
                        self._utxos.append({'txid': tx['txid'], 'vout': out['n'], 'value': out['value']})
Scan the blocks for self._address outputs and add them to self._utxos
Scan the blocks for self._address outputs and add them to self._utxos
Scan the blocks for self . _address outputs and add them to self . _utxos
def scan_blocks(self, *, start=1, num):
        for i in range(start, start + num):
            block = self._test_node.getblock(blockhash=self._test_node.getblockhash(i), verbosity=2)
            for tx in block['tx']:
                for out in tx['vout']:
                    if out['scriptPubKey']['hex'] == self._scriptPubKey.hex():
                        self._utxos.append({'txid': tx['txid'], 'vout': out['n'], 'value': out['value']})
def scan_blocks ( self , * , start = 1 , num ) : for i in range ( start , start + num ) : block = self . _test_node . getblock ( blockhash = self . _test_node . getblockhash ( i ) , verbosity = 2 ) for tx in block [ 'tx' ] : for out in tx [ 'vout' ] : if out [ 'scriptPubKey' ] [ 'hex' ] == self . _scriptPubKey . hex ( ) : self . _utxos . append ( { 'txid' : tx [ 'txid' ] , 'vout' : out [ 'n' ] , 'value' : out [ 'value' ] } )
Scan the blocks for self._address outputs and add them to self._utxos
Scan the blocks for self . _address outputs and add them to self . _utxos
"""Scan the blocks for self._address outputs and add them to self._utxos"""
self
start
num