fix for has_channel_signature in claim_search

This commit is contained in:
Lex Berezhny 2019-06-26 19:19:10 -04:00
parent ca999053ae
commit 86b46ebf19

View file

@ -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]