No description
Find a file
Jonathan Zernik 293cbc4db5
Got all flake8 checks passing (#514)
* Got all flake8 checks passing

* Remove reorder imports from codecheck tox env
2020-12-26 04:56:46 -08:00
alembic Autoformat python code with tox command (#510) 2020-12-26 02:01:22 -08:00
docker Fix all codecheck errors in source code (#512) 2020-12-26 04:16:11 -08:00
docs Add alembic (#418) 2020-11-08 21:23:19 -05:00
frontend Remove channel item expand btn (#496) 2020-11-30 23:11:52 -05:00
itests Got all flake8 checks passing (#514) 2020-12-26 04:56:46 -08:00
proto Use squeaklib with ptlc (#502) 2020-12-25 20:17:54 -08:00
squeaknode Fix all codecheck errors in source code (#512) 2020-12-26 04:16:11 -08:00
tests Got all flake8 checks passing (#514) 2020-12-26 04:56:46 -08:00
.dockerignore Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
.gitignore Use data classes instead of namedtuples (#508) 2020-12-26 01:00:58 -08:00
alembic.ini Add alembic (#418) 2020-11-08 21:23:19 -05:00
createdb.sql Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
install-rpc.sh Lnd get info from frontend (#100) 2020-07-20 22:52:04 -07:00
LICENSE Update LICENSE (#71) 2020-07-15 16:00:13 -07:00
Makefile Use data classes instead of namedtuples (#508) 2020-12-26 01:00:58 -08:00
MANIFEST.in Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
README.md Use docker compose overrides for testnet mainnet (#482) 2020-11-23 20:43:19 -05:00
requirements-itest.txt Use squeaklib with ptlc (#502) 2020-12-25 20:17:54 -08:00
requirements.txt Use data classes instead of namedtuples (#508) 2020-12-26 01:00:58 -08:00
setup.cfg Rename to squeaknode (#342) 2020-10-29 14:35:17 -04:00
setup.py Autoformat python code with tox command (#510) 2020-12-26 02:01:22 -08:00
tox.ini Got all flake8 checks passing (#514) 2020-12-26 04:56:46 -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 with docker:

Requirements
  • docker
  • docker-compose
  • Enough disk space for the bitcoin blockchain
Steps
  • Build and start docker-compose:
    $ cd docker
    $ docker-compose build
    $ docker-compose up
    
  • If you want to use mainnet, run with the docker-compose.mainnet.yml override file:
    $ docker-compose -f docker-compose.yml -f docker-compose.mainnet.yml up
    
  • Go to http://localhost:12994/ and use the username/password in docker/config.ini to log in.

Run without docker:

Requirements
  • A running bitcoin node
  • A running lnd node
  • Python3.6
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
    
    [bitcoin]
    rpc_host=localhost
    rpc_port=18334
    rpc_user=devuser
    rpc_pass=devpass
    
    [lnd]
    host=localhost
    port=9735
    rpc_port=10009
    tls_cert_path=~/.lnd/tls.cert
    macaroon_path=~/.lnd/data/chain/bitcoin/testnet/admin.macaroon
    
    [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