mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-18 21:54:20 +01:00
datastore: fix emptying of store into upgraded node.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
eac6b087da
commit
d7bfc2204d
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user