forked from LBRYCommunity/lbry-sdk
add extra debug logging when a channel is not a claim errors
This commit is contained in:
parent
81a6e14a5c
commit
6ee9f2513b
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import logging
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from binascii import hexlify
|
from binascii import hexlify
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -8,6 +9,9 @@ from lbrynet.wallet.dewies import dewies_to_lbc
|
||||||
from lbrynet.wallet.ledger import MainNetLedger
|
from lbrynet.wallet.ledger import MainNetLedger
|
||||||
|
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class JSONResponseEncoder(JSONEncoder):
|
class JSONResponseEncoder(JSONEncoder):
|
||||||
|
|
||||||
def __init__(self, *args, ledger: MainNetLedger, **kwargs):
|
def __init__(self, *args, ledger: MainNetLedger, **kwargs):
|
||||||
|
@ -75,6 +79,9 @@ class JSONResponseEncoder(JSONEncoder):
|
||||||
)
|
)
|
||||||
except BadSignatureError:
|
except BadSignatureError:
|
||||||
output['valid_signature'] = False
|
output['valid_signature'] = False
|
||||||
|
except ValueError:
|
||||||
|
log.exception(f'txo.id: {txo.id}, txo.channel.id:{txo.channel.id}, output: {output}')
|
||||||
|
output['valid_signature'] = False
|
||||||
|
|
||||||
if txo.script.is_claim_name:
|
if txo.script.is_claim_name:
|
||||||
output['type'] = 'claim'
|
output['type'] = 'claim'
|
||||||
|
|
Loading…
Reference in a new issue