+ save wallet after creating a channel

This commit is contained in:
Lex Berezhny 2018-07-12 12:18:58 -04:00 committed by Jack Robison
parent eeb5b3c139
commit 688caf4453
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 5 additions and 0 deletions

View file

@ -1558,6 +1558,7 @@ class Daemon(AuthJSONRPCServer):
}
"""
tx = yield self.wallet.claim_new_channel(channel_name, amount)
self.wallet.save()
script = tx.outputs[0].script
result = {
"success": True,

View file

@ -201,6 +201,10 @@ class LbryWalletManager(BaseWalletManager):
def cancel_point_reservation(self, reserved_points):
pass # fixme: disabled for now.
def save(self):
for wallet in self.wallets:
wallet.save()
class ReservedPoints(object):
def __init__(self, identifier, amount):