1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-18 11:21:11 +00:00

defs: fix coindef.py

This commit is contained in:
Pavol Rusnak 2018-07-30 12:08:52 +02:00
parent a3e7f2651e
commit b6549f22cf
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -35,6 +35,7 @@ class CoinDef(p.MessageType):
30: ('maintainer', p.UnicodeType, 0),
31: ('blocktime_seconds', p.UVarintType, 0),
32: ('bip115', p.BoolType, 0),
33: ('cooldown', p.UVarintType, 0),
}
def __init__(
@ -73,7 +74,8 @@ class CoinDef(p.MessageType):
blocktime_seconds: int = None,
default_fee_b: dict = None,
bitcore: dict = None,
blockbook: dict = None
blockbook: dict = None,
cooldown: int = None
):
self.coin_name = coin_name
self.coin_shortcut = coin_shortcut
@ -110,4 +112,5 @@ class CoinDef(p.MessageType):
self.default_fee_b = default_fee_b
self.bitcore = bitcore
self.blockbook = blockbook
self.cooldown = cooldown
p.MessageType.__init__(self)