This commit is contained in:
Jack 2016-08-08 01:54:41 -04:00
parent 1523cad044
commit f32250f431

View file

@ -425,7 +425,7 @@ class LBRYWallet(object):
return Metadata(meta_for_return) return Metadata(meta_for_return)
def claim_name(self, name, bid, m): def claim_name(self, name, bid, m):
def _save_metadata(txid): def _save_metadata(txid, metadata):
log.info("Saving metadata for claim %s" % txid) log.info("Saving metadata for claim %s" % txid)
d = self._save_name_metadata(name, txid, metadata['sources']['lbry_sd_hash']) d = self._save_name_metadata(name, txid, metadata['sources']['lbry_sd_hash'])
d.addCallback(lambda _: txid) d.addCallback(lambda _: txid)
@ -446,7 +446,7 @@ class LBRYWallet(object):
d = self.get_claim_info(name) d = self.get_claim_info(name)
d.addCallback(lambda claim: _claim_or_update(claim, meta, bid)) d.addCallback(lambda claim: _claim_or_update(claim, meta, bid))
d.addCallback(_save_metadata) d.addCallback(lambda txid: _save_metadata(txid, meta))
return d return d
def abandon_name(self, txid): def abandon_name(self, txid):