No description
Find a file
2020-12-28 23:52:32 -08:00
docker Add the missing postgres ubuntu package in dockerfile (#524) 2020-12-28 14:52:13 -08:00
docs Improve readme sections (#521) 2020-12-27 23:55:28 -08:00
frontend Remove channel item expand btn (#496) 2020-11-30 23:11:52 -05:00
itests Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
proto Use squeaklib with ptlc (#502) 2020-12-25 20:17:54 -08:00
squeaknode Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
tests Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
.dockerignore Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
.flake8 Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
.gitignore Use data classes instead of namedtuples (#508) 2020-12-26 01:00:58 -08:00
.pre-commit-config.yaml Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
config.ini Run squeaknode directly on host without docker (#518) 2020-12-27 20:55:52 -08:00
createdb.sql Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
LICENSE Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Makefile Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
MANIFEST.in Use python slim docker base image (#516) 2020-12-27 04:59:59 -08:00
README.md Improve readme sections (#521) 2020-12-27 23:55:28 -08:00
requirements-dev.txt Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
requirements-itest.txt Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
requirements.txt Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
setup.cfg Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
setup.py Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
tox.ini Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
wait-for-it.sh Make docker compose run (#45) 2020-06-11 20:09:02 -07:00

squeaknode

Node for Squeak protocol

Run a node:

Requirements

  • a bitcoin node
  • an LND node
  • Python 3.7 or later

If you don't already have a bitcoin node or lightning node, you can follow the instructions follow the instructions here to launch them in Docker.

Steps

  • Create a config.ini file and fill in the relevant sections to connect to your bitcoin and lnd nodes:

    [squeaknode]
    network=testnet
    price_msat=1000000
    sync_interval_s=10
    
    [lnd]
    host=localhost
    port=9735
    rpc_port=10009
    tls_cert_path=~/.lnd/tls.cert
    macaroon_path=~/.lnd/data/chain/bitcoin/testnet/admin.macaroon
    
    [bitcoin]
    rpc_host=localhost
    rpc_port=18334
    rpc_user=devuser
    rpc_pass=devpass
    
    [webadmin]
    enabled=true
    username=devuser
    password=devpass
    
  • Install squeaknode:

    $ pip install squeaknode
    

    or

    $ python setup.py install
    
  • Start the squeak server:

    $ runsqueaknode --config config.ini run-server
    
  • Go to http://localhost:12994/ and use the username/password in config.ini to log in.

Test

Run unit tests:

$ make test

Run integration tests:

$ make itest