remove as_json and serialize
This commit is contained in:
parent
1ca9f575ef
commit
66396de6a3
2 changed files with 1 additions and 7 deletions
|
@ -87,12 +87,6 @@ class Validator(dict):
|
|||
else:
|
||||
return False
|
||||
|
||||
def serialize(self):
|
||||
return json.dumps(self).encode("hex")
|
||||
|
||||
def as_json(self):
|
||||
return json.dumps(self)
|
||||
|
||||
def __init__(self, value, process_now=False):
|
||||
dict.__init__(self)
|
||||
self._skip = []
|
||||
|
|
|
@ -1218,7 +1218,7 @@ class LBRYumWallet(LBRYWallet):
|
|||
def _send_name_claim_update(self, name, claim_id, txid, value, amount):
|
||||
def send_claim_update(address):
|
||||
decoded_claim_id = claim_id.decode('hex')[::-1]
|
||||
metadata = Metadata(value).as_json()
|
||||
metadata = json.dumps(Metadata(value))
|
||||
log.info("updateclaim %s %s %f %s %s '%s'", txid, address, amount, name, decoded_claim_id.encode('hex'), json.dumps(metadata))
|
||||
cmd = known_commands['updateclaim']
|
||||
func = getattr(self.cmd_runner, cmd.name)
|
||||
|
|
Loading…
Reference in a new issue