mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-13 12:33:19 +02:00
datastore: fix emptying of store into upgraded node.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
eac6b087da
commit
d7bfc2204d
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ def unload_store(plugin):
|
|||
plugin.log("Emptying store into main store (resetting generations!)", level='unusual')
|
||||
for k, (g, data) in datastore.items():
|
||||
try:
|
||||
plugin.rpc.datastore(key=[k], hex=d.hex())
|
||||
plugin.rpc.datastore(key=[k], hex=data.hex())
|
||||
except RpcError as e:
|
||||
plugin.log("Failed to put {} into store: {}".format(k, e),
|
||||
level='broken')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue