From 86b46ebf199d26d5a01325b48bdc67c436a61f2d Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 26 Jun 2019 19:19:10 -0400 Subject: [PATCH] fix for has_channel_signature in claim_search --- lbry/lbry/wallet/server/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/lbry/wallet/server/db.py b/lbry/lbry/wallet/server/db.py index 58c56355e..044820d63 100644 --- a/lbry/lbry/wallet/server/db.py +++ b/lbry/lbry/wallet/server/db.py @@ -838,8 +838,8 @@ class SQLDB: 'claim.signature_valid__is_null': True, 'claim.signature_valid': constraints.pop('signature_valid') } - elif 'has_channel_signature' in constraints: - constraints['claim.signature_valid__is_not_null'] = constraints.pop('has_channel_signature') + elif constraints.pop('has_channel_signature', False): + constraints['claim.signature_valid__is_not_null'] = True if 'txid' in constraints: tx_hash = unhexlify(constraints.pop('txid'))[::-1]