1
0

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

This commit is contained in:
ThomasV
2013-02-03 15:12:40 +01:00
parent 043d6addff
commit 7ae46aa413

View File

@@ -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