mirror of
https://github.com/planetmint/planetmint.git
synced 2025-07-06 12:42:29 +00:00
simplified fix
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
e153a87c44
commit
99a6f9889e
@ -917,12 +917,9 @@ class Planetmint(object):
|
|||||||
# elections concluded at this height
|
# elections concluded at this height
|
||||||
self.delete_elections(new_height)
|
self.delete_elections(new_height)
|
||||||
|
|
||||||
txids = [self.get_transaction(tx_id) for tx_id in txn_ids]
|
txns = [self.get_transaction(tx_id) for tx_id in txn_ids]
|
||||||
txns = []
|
|
||||||
if len(txids) > 0:
|
txns = [Transaction.from_dict(tx.to_dict()) for tx in txns if tx]
|
||||||
for tx in txids:
|
|
||||||
if tx:
|
|
||||||
txns.append(Transaction.from_dict(tx.to_dict()))
|
|
||||||
|
|
||||||
elections = self._get_votes(txns)
|
elections = self._get_votes(txns)
|
||||||
for election_id in elections:
|
for election_id in elections:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user