No description
Find a file
Jonathan Zernik afbd2b8238
Show status of saved peers (#1399)
* Show connection status of saved peers with icon

* Make frontend lint

* Make frontend lint
2021-09-23 22:01:29 -07:00
.github/workflows Update main.yml (#555) 2021-01-03 23:09:10 -08:00
docker Add waiting indicator for lnd node connect disconnect (#1343) 2021-09-18 19:00:04 -07:00
docs Add protoc-gen-grpc-web requirement to dev doc (#1390) 2021-09-22 15:20:06 -07:00
frontend Show status of saved peers (#1399) 2021-09-23 22:01:29 -07:00
itests Do handshake in connection class, use queue for synchronous connect peer (#1370) 2021-09-20 20:53:44 -07:00
proto Got itest working for get peer by address (#1364) 2021-09-20 15:13:29 -07:00
squeaknode Fix duplicate connection causing zombie connection (#1397) 2021-09-22 19:39:08 -07:00
tests Send secret key when profile configured to free (#1197) 2021-09-05 14:38:52 -07: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 license headers (#1080) 2021-08-27 18:31:53 -07:00
CHANGELOG.md Add changelog 2021-09-19 12:24:57 -07:00
config-mainnet.ini Add mainnet config.ini file (#652) 2021-01-14 10:25:37 -08:00
config.ini Include zeromq hashblock port in example config (#1295) 2021-09-15 19:13:34 -07:00
createdb.sql Fix serialization of payment hash db (#579) 2021-01-08 00:48:16 -08:00
Dockerfile Use correct ports for expose in dockerfile (#906) 2021-08-10 21:57:36 -07:00
LICENSE Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Makefile Clean up makefile (#570) 2021-01-06 23:47:50 -08:00
MANIFEST.in Use new icon (#1244) 2021-09-09 14:32:19 -07:00
README.md Add libpq-dev to readme (#1391) 2021-09-22 15:22:13 -07:00
requirements-dev.txt Upgrade squeaklib to 0.7.5 and fix broken mypy-protobuf (#1375) 2021-09-20 23:09:54 -07:00
requirements-itest.txt Upgrade squeaklib to 0.7.5 and fix broken mypy-protobuf (#1375) 2021-09-20 23:09:54 -07:00
requirements.txt Upgrade squeaklib to 0.7.5 and fix broken mypy-protobuf (#1375) 2021-09-20 23:09:54 -07:00
setup.cfg Fix license files config (#1063) 2021-08-24 21:22:00 -07:00
setup.py Move mypy protobuf to dev requirements (#1374) 2021-09-20 22:24:52 -07:00
start-squeaknode.sh Remove sleep from start script (#1294) 2021-09-15 19:02:17 -07:00
tox.ini Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00

squeaknode

Node for Squeak protocol

Run a node:

Requirements

  • a bitcoin node
  • an LND node
  • Python 3.6 or later
  • a Tor SOCKS5 proxy (you can open Tor Browser and run it in the background)
  • libpq-dev (sudo apt install libpq-dev on ubuntu)

Steps

  • Update the config.ini file and fill in the relevant sections to connect to your bitcoin node and lnd node:
    [node]
    network=mainnet
    tor_proxy_ip=localhost
    tor_proxy_port=9150
    
    [lnd]
    host=localhost
    tls_cert_path=~/.lnd/tls.cert
    macaroon_path=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
    
    [bitcoin]
    rpc_host=localhost
    rpc_port=8332
    rpc_user=devuser
    rpc_pass=devpass
    zeromq_hashblock_port=28334
    
    [webadmin]
    enabled=true
    username=devuser
    password=devpass
    
  • Install squeaknode:
    $ virtualenv venv
    $ source venv/bin/activate
    $ pip install -r requirements.txt
    $ python setup.py install
    
  • Start squeaknode:
    $ squeaknode --config config.ini
    
  • Go to http://localhost:12994/ and use the username/password in config.ini to log in.

Test

Unit tests:

Requirements

  • tox
$ make test

Integration tests:

Requirements

  • docker-compose
  • jq
$ make itest