From 23fcbe0bbddd08a771b74374766303f5cc9c5912 Mon Sep 17 00:00:00 2001 From: hal0x2328 Date: Thu, 12 Oct 2017 18:16:43 -0400 Subject: [PATCH] close existing wallet before creating new one --- neo/Implementations/Wallets/peewee/UserWallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neo/Implementations/Wallets/peewee/UserWallet.py b/neo/Implementations/Wallets/peewee/UserWallet.py index 706057afa..43a272770 100644 --- a/neo/Implementations/Wallets/peewee/UserWallet.py +++ b/neo/Implementations/Wallets/peewee/UserWallet.py @@ -43,6 +43,7 @@ def __init__(self, path, passwordKey, create): self.__log.debug("initialized user wallet!! %s " % self) def BuildDatabase(self): + PWDatabase.Destroy() PWDatabase.Initialize(self._path) db = PWDatabase.ContextDB() try: