From d7bfc2204d2391c12d21f428e051a0ff4e2b04eb Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 19 Aug 2021 13:33:48 +0930 Subject: [PATCH] datastore: fix emptying of store into upgraded node. Signed-off-by: Rusty Russell --- datastore/datastore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/datastore.py b/datastore/datastore.py index 07b7316..8d3cbbb 100755 --- a/datastore/datastore.py +++ b/datastore/datastore.py @@ -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')