nayutaco / ptarmigan

Lightning Network (BOLT)
Apache License 2.0
132 stars 19 forks source link

How to run in SPV mode? #1471

Open fiatjaf opened 5 years ago

fiatjaf commented 5 years ago

I see there's so support for bitcoinj, but there are no instructions. I'm confused.

nayuta-ueno commented 5 years ago

This document explain how to build. https://github.com/nayutaco/ptarmigan/blob/master/docs/build_for_spv.md#build

Ubuntu 18.04 setup

  1. make clean
  2. edit options.mak
set NODE_TYPE=BITCOIND
    ↓↓↓
set NODE_TYPE=BITCOINJ
  1. make
  2. set LD_LIBRARY_PATH for JVM
cd install
source jdk.sh

# output libjvm.so PATH if success.
  1. create node folder and run
    • same as bitcoind version
    • or you can use node folder created for bitcoind version

After run ptarmd

  1. get address from bitcoinj for fund
../ptarmcli --getnewaddress
  1. send bitcoin to address

  2. wait balance available

../ptarmcli --getbalance
  1. You can use this balance for channel funding.