working on cli

master
lza_menace 2 years ago
parent 17939b6672
commit 9c0a09b668

@ -48,7 +48,7 @@ def cli(app):
@app.cli.command('verify_tips') @app.cli.command('verify_tips')
def verify_tips(): def verify_tips():
txes = Transaction.select().where(Transaction.verified == False) txes = Transaction.select()
for tx in txes: for tx in txes:
data = { data = {
'txid': tx.tx_id, 'txid': tx.tx_id,
@ -58,7 +58,7 @@ def cli(app):
try: try:
res = make_wallet_rpc('check_tx_key', data) res = make_wallet_rpc('check_tx_key', data)
if res['received'] == 0: if res['received'] == 0:
click.echo('[!] Key and tx are correct, but the address is not.') click.echo(f'[tx-{tx.id}] Key and tx are correct, but found XMR amount of 0. User must have selected the wrong post.')
continue continue
if res['in_pool'] is False: if res['in_pool'] is False:
txdata = get_daemon().transactions([tx.tx_id])[0] txdata = get_daemon().transactions([tx.tx_id])[0]

Loading…
Cancel
Save