No description
Find a file
Jonathan Zernik 12f7b62349
Add toggle for connect with tor (#1550)
* Added use_tor option to peer address class and grpc message

* Got itest passing without tor

* Got peer connection working in UI with tor toggle

* Able to connect to with and without tor

* Got save peer working with tor and without tor

* Add use_tor field to peer address everywhere.

* Fix usage of useMemo in peer address page
2021-10-09 22:26:54 -07:00
.github/workflows Add opentimestamps GitHub action (#1524) 2021-10-06 21:41:15 -07:00
docker Add toggle for connect with tor (#1550) 2021-10-09 22:26:54 -07:00
docs Update docs to use pip install . (#1500) 2021-10-04 20:16:20 -07:00
frontend Add toggle for connect with tor (#1550) 2021-10-09 22:26:54 -07:00
itests Add toggle for connect with tor (#1550) 2021-10-09 22:26:54 -07:00
proto Add toggle for connect with tor (#1550) 2021-10-09 22:26:54 -07:00
squeaknode Add toggle for connect with tor (#1550) 2021-10-09 22:26:54 -07:00
tests Add toggle for connect with tor (#1550) 2021-10-09 22:26:54 -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 Release version 0.1.160 2021-10-07 00:48:43 -07:00
config-mainnet.ini Add mainnet config.ini file (#652) 2021-01-14 10:25:37 -08:00
config.ini Got itest working with lnd using tor for both listen and connect (#1495) 2021-10-04 18:33:16 -07:00
createdb.sql Fix serialization of payment hash db (#579) 2021-01-08 00:48:16 -08:00
Dockerfile Remove libpq-dev as requirement for standard install (#1442) 2021-09-29 12:37:04 -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 Capitalize bitcoin in readme (#1511) 2021-10-05 03:02:26 -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 version of squeaklib to 0.7.7 (#1435) 2021-09-27 21:38:44 -07:00
requirements.txt Remove libpq-dev as requirement for standard install (#1442) 2021-09-29 12:37:04 -07:00
setup.cfg Fix test coverage omitted files (#1458) 2021-10-01 16:51:26 -07:00
setup.py Change description in setup.py (#1497) 2021-10-04 19:20:12 -07:00
start-squeaknode.sh Remove sleep from start script (#1294) 2021-09-15 19:02:17 -07:00
tox.ini Add unit test for network connection using connection manager (#1493) 2021-10-04 00:48:46 -07:00

squeaknode

GitHub CI workflow codecov

Node for Squeak protocol

Run a node:

Requirements

  • a Bitcoin node
  • an LND node
  • Python 3.6 or later

Optional

  • a Tor SOCKS5 proxy (you can open Tor Browser and run it in the background)

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
    $ pip 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