Preparation for moving the set of verified and unverified txs to the wallet.
The verifier will retain responsibility for verification, but will no longer hold the transaction sets itself. Change requires_fee to take a wallet. Add new function add_unverified_tx() Move get_confirmations() to the wallet from the verifier.
This commit is contained in:
@@ -87,7 +87,7 @@ def on_wallet_update():
|
||||
for tx_hash, tx_height in h:
|
||||
tx = wallet.transactions.get(tx_hash)
|
||||
if not tx: continue
|
||||
if wallet.verifier.get_confirmations(tx_hash) < requested_confs: continue
|
||||
if wallet.get_confirmations(tx_hash)[0] < requested_confs: continue
|
||||
for o in tx.outputs:
|
||||
o_type, o_address, o_value = o
|
||||
if o_address == addr:
|
||||
|
||||
Reference in New Issue
Block a user