commit 3ff203ea51a87ad0ca55a91764210ca3e02b471c
parent 897f90d6e88b694c1bde990a5abce85ccb8e8c96
Author: SomberNight <somber.night@protonmail.com>
Date: Fri, 12 Mar 2021 17:38:19 +0100
commands: fix list_requests
closes https://github.com/spesmilo/electrum/issues/7102
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/commands.py b/electrum/commands.py
@@ -804,7 +804,8 @@ class Commands:
f = None
out = wallet.get_sorted_requests()
if f is not None:
- out = list(filter(lambda x: x.status==f, out))
+ out = [req for req in out
+ if f == wallet.get_request_status(wallet.get_key_for_receive_request(req))]
return [wallet.export_request(x) for x in out]
@command('w')