remove clean_bad_records
This commit is contained in:
parent
ecaa5249b4
commit
cd67ca6ce3
1 changed files with 0 additions and 13 deletions
|
@ -112,9 +112,6 @@ class MetaDataStorage(object):
|
||||||
def load(self):
|
def load(self):
|
||||||
return defer.succeed(True)
|
return defer.succeed(True)
|
||||||
|
|
||||||
def clean_bad_records(self):
|
|
||||||
return defer.succeed(True)
|
|
||||||
|
|
||||||
def save_name_metadata(self, name, claim_outpoint, sd_hash):
|
def save_name_metadata(self, name, claim_outpoint, sd_hash):
|
||||||
return defer.succeed(True)
|
return defer.succeed(True)
|
||||||
|
|
||||||
|
@ -258,12 +255,6 @@ class SqliteStorage(MetaDataStorage):
|
||||||
|
|
||||||
return self.db.runInteraction(create_tables)
|
return self.db.runInteraction(create_tables)
|
||||||
|
|
||||||
@rerun_if_locked
|
|
||||||
@defer.inlineCallbacks
|
|
||||||
def clean_bad_records(self):
|
|
||||||
yield self.db.runQuery("DELETE FROM name_metadata WHERE LENGTH(txid) > 64 OR txid IS NULL")
|
|
||||||
defer.returnValue(None)
|
|
||||||
|
|
||||||
@rerun_if_locked
|
@rerun_if_locked
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def save_name_metadata(self, name, claim_outpoint, sd_hash):
|
def save_name_metadata(self, name, claim_outpoint, sd_hash):
|
||||||
|
@ -424,14 +415,10 @@ class Wallet(object):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
d = self._storage.load()
|
d = self._storage.load()
|
||||||
d.addCallback(lambda _: self._clean_bad_records())
|
|
||||||
d.addCallback(lambda _: self._start())
|
d.addCallback(lambda _: self._start())
|
||||||
d.addCallback(lambda _: start_manage())
|
d.addCallback(lambda _: start_manage())
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def _clean_bad_records(self):
|
|
||||||
self._storage.clean_bad_records()
|
|
||||||
|
|
||||||
def _save_name_metadata(self, name, claim_outpoint, sd_hash):
|
def _save_name_metadata(self, name, claim_outpoint, sd_hash):
|
||||||
return self._storage.save_name_metadata(name, claim_outpoint, sd_hash)
|
return self._storage.save_name_metadata(name, claim_outpoint, sd_hash)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue