PeerAssets / pypeerassets

Reference implementation of the PeerAssets protocol.
BSD 3-Clause "New" or "Revised" License
12 stars 16 forks source link

deck_parser: modified checks for issue_time and tx_confirmations #132

Closed d5000 closed 4 years ago

d5000 commented 4 years ago

1) d["time"] leads to a KeyError. 2) if d["tx_confirmations"] is 0 (i.e. client is aware of a PeerAssets transaction without confirmations) a KeyError is risen. The if-else structure prevents that and sets tx_confirmations to 0.