+ save wallet after creating a channel
This commit is contained in:
parent
eeb5b3c139
commit
688caf4453
2 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue