mirror of
https://github.com/planetmint/planetmint.git
synced 2025-03-30 15:08:31 +00:00
fixed bug : roll back caused from_dict call on a None object
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
979af5e453
commit
815f5c199d
@ -917,9 +917,12 @@ class Planetmint(object):
|
||||
# elections concluded at this height
|
||||
self.delete_elections(new_height)
|
||||
|
||||
txns = [self.get_transaction(tx_id) for tx_id in txn_ids]
|
||||
|
||||
txns = [Transaction.from_dict(tx.to_dict()) for tx in txns]
|
||||
txids = [self.get_transaction(tx_id) for tx_id in txn_ids]
|
||||
txns = []
|
||||
if len( txids ) > 0:
|
||||
for tx in txids:
|
||||
if tx:
|
||||
txns.append(Transaction.from_dict(tx.to_dict()) )
|
||||
|
||||
elections = self._get_votes(txns)
|
||||
for election_id in elections:
|
||||
|
Loading…
x
Reference in New Issue
Block a user