Browse Source

raise exception if the method is used to overwrite the existing seed

283
ThomasV 12 years ago
parent
commit
7ae46aa413
  1. 1
      lib/wallet.py

1
lib/wallet.py

@ -142,6 +142,7 @@ class Wallet:
def init_seed(self, seed):
if self.seed: raise BaseException("a seed exists")
if not seed:
seed = "%032x"%ecdsa.util.randrange( pow(2,128) )
self.seed = seed

Loading…
Cancel
Save