commit 7ae46aa41313ab364dff21a81afb3d190482453a
parent 043d6addffb5ad960216222802e98ccde315ea80
Author: ThomasV <thomasv@gitorious>
Date: Sun, 3 Feb 2013 15:12:40 +0100
raise exception if the method is used to overwrite the existing seed
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/wallet.py b/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