mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 09:37:31 +00:00
fix data_loss_protect (missing return, json conversion)
This commit is contained in:
parent
9734546fe9
commit
beee880dba
2 changed files with 3 additions and 1 deletions
|
@ -153,7 +153,7 @@ class Channel(Logger):
|
|||
self.data_loss_protect_remote_pcp[key] = value
|
||||
|
||||
def get_data_loss_protect_remote_pcp(self, key):
|
||||
self.data_loss_protect_remote_pcp.get(key)
|
||||
return self.data_loss_protect_remote_pcp.get(key)
|
||||
|
||||
def set_remote_update(self, raw):
|
||||
self.storage['remote_update'] = raw.hex()
|
||||
|
|
|
@ -971,6 +971,8 @@ class WalletDB(JsonDB):
|
|||
v = dict((k, {(prevout, value) for (prevout, value) in x}) for k, x in v.items())
|
||||
elif key == 'buckets':
|
||||
v = dict((k, ShachainElement(bfh(x[0]), int(x[1]))) for k, x in v.items())
|
||||
elif key == 'data_loss_protect_remote_pcp':
|
||||
v = dict((k, bfh(x)) for k, x in v.items())
|
||||
return v
|
||||
|
||||
def _convert_value(self, path, key, v):
|
||||
|
|
Loading…
Add table
Reference in a new issue