mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-20 06:34:20 +01:00
backup: fix deadlock by removing the sqlite3 check
I commented out that check and placed a NOTE that future developers to see upfront putting in RPC stuff in init is potentially bad.
This commit is contained in:
committed by
Christian Decker
parent
abbdeabec6
commit
4a9df896ad
@@ -443,9 +443,12 @@ def on_init(options, **kwargs):
|
|||||||
level="warn"
|
level="warn"
|
||||||
)
|
)
|
||||||
|
|
||||||
configs = plugin.rpc.listconfigs()
|
# IMPORTANT NOTE
|
||||||
if not configs['wallet'].startswith('sqlite3'):
|
# Putting RPC stuff in init() like the following can cause deadlocks!
|
||||||
kill("The backup plugin only works with the sqlite3 database.")
|
# See: https://github.com/lightningd/plugins/issues/209
|
||||||
|
#configs = plugin.rpc.listconfigs()
|
||||||
|
#if not configs['wallet'].startswith('sqlite3'):
|
||||||
|
# kill("The backup plugin only works with the sqlite3 database.")
|
||||||
|
|
||||||
|
|
||||||
def kill(message: str):
|
def kill(message: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user