traise exception if the method is used to overwrite the existing seed - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7ae46aa41313ab364dff21a81afb3d190482453a DIR parent 043d6addffb5ad960216222802e98ccde315ea80 HTML 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: M lib/wallet.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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