From 8a5bfe884ad720aa9cab7d78f330d478b2d7b624 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Wed, 24 Jul 2019 17:30:21 -0400 Subject: [PATCH] save channel keys into wallet before broadcasting --- lbry/lbry/extras/daemon/Daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/lbry/extras/daemon/Daemon.py b/lbry/lbry/extras/daemon/Daemon.py index d358cba90..ce294444f 100644 --- a/lbry/lbry/extras/daemon/Daemon.py +++ b/lbry/lbry/extras/daemon/Daemon.py @@ -1946,9 +1946,9 @@ class Daemon(metaclass=JSONRPCServerType): if not preview: await tx.sign([account]) - await self.broadcast_or_release(account, tx, blocking) account.add_channel_private_key(txo.private_key) self.default_wallet.save() + await self.broadcast_or_release(account, tx, blocking) await self.storage.save_claims([self._old_get_temp_claim_info( tx, txo, claim_address, claim, name, dewies_to_lbc(amount) )]) @@ -2085,9 +2085,9 @@ class Daemon(metaclass=JSONRPCServerType): if not preview: await tx.sign([account]) - await self.broadcast_or_release(account, tx, blocking) account.add_channel_private_key(new_txo.private_key) self.default_wallet.save() + await self.broadcast_or_release(account, tx, blocking) await self.storage.save_claims([self._old_get_temp_claim_info( tx, new_txo, claim_address, new_txo.claim, new_txo.claim_name, dewies_to_lbc(amount) )])