core: add equality function to mako template too

pull/169/head
Pavol Rusnak 5 years ago
parent 0568379f8d
commit 164336cb56
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -63,6 +63,11 @@ class CoinInfo:
self.sign_hash_double = True
self.script_hash = sha256_ripemd160_digest
def __eq__(self, other):
if not isinstance(other, CoinInfo):
return NotImplemented
return self.coin_name == other.coin_name
# fmt: off
<%

Loading…
Cancel
Save