GithubHelp home page GithubHelp logo

Comments (14)

lukechilds avatar lukechilds commented on August 22, 2024 2

Concept ACK.

Would love to see this, it's a feature that I hear a lot of people talk about but AFAIK no one has implemented yet, would be great if Umbrel was the first.

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024 2

Will attempt to do this. Probably a bash looping service similar to the unlock script

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024 1

it would need to keep running too and be able to switch back and forth too.

Say bitcoind is corrupted it should switch back and forth

from umbrel.

mayankchhabra avatar mayankchhabra commented on August 22, 2024 1

Awesome! Looking forward. It really is one of the last few missing pieces before we can launch.

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024 1

sample code which can do it

#!/bin/bash -e

PASSWORD=`cat $PWD/secrets/rpcpass.txt`

INFO=`curl --user lncm:$PASSWORD --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' http://10.254.2.2:18332 2>/dev/null`

HEADERS=`echo $INFO | jq .result.headers`
BLOCKS=`echo $INFO | jq .result.blocks`

if [ $HEADERS -eq $BLOCKS ]; then
    echo "Switching over from bitcoind to neutrino"
    sed 's/bitcoin.node\=neutrino/bitcoin.node\=bitcoind/g; ' lnd/lnd.conf
fi

from umbrel.

mayankchhabra avatar mayankchhabra commented on August 22, 2024

Instead of creating a new docker service, perhaps this should be handled by https://github.com/getumbrel/umbrel-manager

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024

lets make it $HOST/lnd/lnd.conf or /mnt/data/lnd/lnd.conf

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024

can be a docker service for sure and restart: on-error

from umbrel.

mayankchhabra avatar mayankchhabra commented on August 22, 2024

lets make it $HOST/lnd/lnd.conf or /mnt/data/lnd/lnd.conf

I didn't fully understand that.. can you please elaborate a bit?

Also, since $HOST/lnd/lnd.conf is symlinked to /mnt/data/lnd/lnd.conf, the lnd-switch can make changes directly to $HOST/lnd/lnd.conf

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024

lets make it $HOST/lnd/lnd.conf or /mnt/data/lnd/lnd.conf

I didn't fully understand that.. can you please elaborate a bit?

Also, since $HOST/lnd/lnd.conf is symlinked to /mnt/data/lnd/lnd.conf, the lnd-switch can make changes directly to $HOST/lnd/lnd.conf

${HOME}

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024

going to have a stab at this now.. it will need a lot of testing

from umbrel.

mayankchhabra avatar mayankchhabra commented on August 22, 2024

Looking good

from umbrel.

nolim1t avatar nolim1t commented on August 22, 2024

https://hub.docker.com/repository/docker/lncm/neutrino-switcher

from umbrel.

igorbastosib avatar igorbastosib commented on August 22, 2024

I know it is an old discussion here, I couldn't find anything new about the subject.

Is it still possible to use 100% LN + Neutrino (or any way to connect to a Bitcoin node on another device)?

I mean, I have a Device (not Umbrel) with a synched BitcoinCoreNode running, I'd like to prepare several Umbrel devices with LN and want to link them to my external BitcoinCoreNode (external just because it is not on the same device, but all on the same Network)

If yes, could someone please share how?

from umbrel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.