store claim_id

This commit is contained in:
Lex Berezhny 2018-07-12 01:05:24 -04:00 committed by Jack Robison
parent 2b234e0713
commit 0fc1bd7a8c
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 5 additions and 1 deletions

View file

@ -40,6 +40,10 @@ class WalletDatabase(BaseDatabase):
})
if txo.script.is_claim_involved:
row['claim_name'] = txo.script.values['claim_name']
if txo.script.is_update_claim or txo.script.is_support_claim:
row['claim_id'] = sqlite3.Binary(txo.script.values['claim_id'])
else:
row['claim_id'] = sqlite3.Binary(tx.get_claim_id(txo.index))
return row
@defer.inlineCallbacks

View file

@ -60,7 +60,7 @@ class LbryWalletManager(BaseWalletManager):
'default_servers': settings['lbryum_servers'],
'data_path': settings['lbryum_wallet_dir'],
'use_keyring': settings['use_keyring'],
'db': db
#'db': db
}
wallet_file_path = os.path.join(settings['lbryum_wallet_dir'], 'default_wallet')