mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-09-24 09:43:24 +00:00
Fix unlock script to hold off and avoid contention if new wallet is created
This commit is contained in:
parent
2bffbf3837
commit
c01df3d8b4
|
@ -9,6 +9,15 @@ while true; do
|
|||
sleep 30s
|
||||
done
|
||||
|
||||
while [ ! -f "$LND_ADMIN_MACAROON_FILE" ]; do
|
||||
echo "Waiting for LND admin macaroon file to exist..."
|
||||
sleep 30s
|
||||
done
|
||||
|
||||
# Sleep 15 seconds to let LND startup and avoid LN race condition
|
||||
# See https://github.com/lightningnetwork/lnd/issues/3631
|
||||
/bin/sleep 15s
|
||||
|
||||
echo "Unlocking wallet..."
|
||||
/usr/bin/expect /usr/bin/unlock_lnd.tcl
|
||||
if [ $? -eq 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user