A plugin that uses block explorers (blockstream.info, mempool.space, blockchair.com and blockchain.info) as backends instead of your own Bitcoin node.
This isn't what you should be doing, but sometimes you may need it.
(Remember this will download all blocks c-lightning needs from blockchain.info or blockchair.com in raw, hex format.)
This is distributed as a single binary for your delight (or you can compile it yourself with go get
, or ask me for binaries for other systems if you need them).
Download it, call chmod +x <binary>
and put it in ~/.lightning/plugins
(create that directory if it doesn't exist).
You only need the binary you can get in the releases page, nothing else.
Then add the following line to your ~/.lightning/config
file:
disable-plugin=bcli
and
trustedcoin-network=main
or test
depends on the type of the network you want trustedcoin
be running.
This disables the default Bitcoin backend plugin so trustedcoin
can take its place.
add-apt-repository ppa:lightningnetwork/ppa
apt update
apt install lightningd
mkdir -p ~/.lightning/plugins
echo 'disable-plugin=bcli' >> .lightning/config
cd ~/.lightning/plugins
wget https://github.com/fiatjaf/trustedcoin/releases/download/v0.2.5/trustedcoin_linux_amd64
chmod +x trustedcoin_linux_amd64
cd
lightningd
- Install
gox
go get -v github.com/mitchellh/gox
-
Ensure
gox
is visible, i.e. presents in your$PATH
. Assuming that you have set up$GOPATH
, yourPATH
has to have additional location$GOPATH/bin
. -
Run
make
insidetrustedcoin
directory. Thegox
should log build process as it shown below.
--> linux/386: github.com/fiatjaf/trustedcoin
--> linux/arm: github.com/fiatjaf/trustedcoin
--> linux/amd64: github.com/fiatjaf/trustedcoin
--> freebsd/amd64: github.com/fiatjaf/trustedcoin
--> darwin/amd64: github.com/fiatjaf/trustedcoin
- Ensure
lightningd-gjson-rpc
is built
go get -v github.com/fiatjaf/lightningd-gjson-rpc