Skip to content

Commit 32b6acd

Browse files
ZeeshanJandimkarakostas
authored andcommitted
Updated default parser to sort reward_addresses
1 parent 3147583 commit 32b6acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus_decentralization/parsers/default_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def parse(self):
4848
data = self.read_and_sort_data()
4949

5050
for block in data:
51-
block['reward_addresses'] = ','.join(set([tx['addresses'][0] for tx in block['outputs']
51+
block['reward_addresses'] = ','.join(sorted([tx['addresses'][0] for tx in block['outputs']
5252
if (tx['addresses'] and int(tx['value']) > MIN_TX_VALUE)]))
5353
del block['outputs']
5454
block['identifiers'] = self.parse_identifiers(block['identifiers'])

0 commit comments

Comments
 (0)