chainqueue

Blockchain transaction queue control
Log | Files | Refs | LICENSE

commit 2a9bf41cf5940432ad2b1dc9b7d425e2da6492ba
parent c54661d39eef26d75f52713ce55e6adb8ac5f105
Author: lash <dev@holbrook.no>
Date:   Fri,  6 May 2022 14:00:05 +0000

Deduplicate multiple matches in by-state list

Diffstat:
Mchainqueue/runnable/list.py | 2+-
Mchainqueue/store/base.py | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/chainqueue/runnable/list.py b/chainqueue/runnable/list.py @@ -41,7 +41,7 @@ argparser.add_argument('--include-pending', action='store_true', dest='include_p argparser.add_argument('--renderer', type=str, default=[], action='append', help='Transaction renderer for output') #argparser.add_argument('--summary', action='store_true', help='output summary for each status category') #argparser.add_argument('-o', '--column', dest='column', action='append', type=str, help='add a column to display') -argparser.add_positional('address', type=str, help='Ethereum address of recipient') +argparser.add_positional('address', required=False, type=str, help='Ethereum address of recipient') args = argparser.parse_args() extra_args = { 'address': None, diff --git a/chainqueue/store/base.py b/chainqueue/store/base.py @@ -104,6 +104,7 @@ class Store: else: for v in self.state_store.elements(state, numeric=True): refs_state += self.state_store.list(v) + refs_state = list(set(refs_state)) if include_pending: refs_state += self.state_store.list(0)