No description
Find a file
2020-10-23 21:31:06 -04:00
docker Add config to enable admin web server (#315) 2020-10-23 21:31:06 -04:00
frontend/squeak-node-frontend Make web server port configurable (#314) 2020-10-23 21:16:50 -04:00
itests Add config to enable admin web server (#315) 2020-10-23 21:31:06 -04:00
proto Add rpc method for get sent payment by id (#300) 2020-10-18 16:23:59 -04:00
squeakserver Add config to enable admin web server (#315) 2020-10-23 21:31:06 -04:00
tests Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
.dockerignore Add get squeaks for address rpc method (#108) 2020-07-21 16:12:26 -07:00
.gitignore Update makefile. 2020-02-22 19:59:29 -08:00
createdb.sql Fix setting up schema in createdb and postgres params (#189) 2020-07-31 22:08:19 -07: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 Add black to make codeformat in makefile (#85) 2020-07-18 19:40:28 -07:00
MANIFEST.in Use configurable engine for db (#251) 2020-08-19 23:14:45 -07:00
README.md Build python protos in setup (#254) 2020-08-20 04:41:35 -07:00
requirements-itest.txt Use pytest for itest (#161) 2020-07-28 19:49:44 -07:00
requirements.txt Add admin web server (#310) 2020-10-22 22:52:40 -04:00
setup.cfg Rename squeaknode to squeakserver (#28) 2020-06-04 17:47:49 -07:00
setup.py Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
tox.ini Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
wait-for-it.sh Make docker compose run (#45) 2020-06-11 20:09:02 -07:00

squeakserver

Server for Squeak protocol

Test

Run unit tests:

$ make test

Run integration tests:

$ make itest

Run

Run with docker:

  • Edit docker/config.ini to use your external IP address for external_host
  • Start the squeak server:
    $ cd docker
    $ docker-compose up
    

Run without docker:

  • Create a config.ini file and fill in the relevant values:
    [squeaknode]
    network=testnet
    price=<YOUR_SELLING_PRICE_IN_SATOSHIS>
    max_squeaks_per_address_per_hour=<YOUR_RATE_LIMIT>
    
    [lnd]
    host=<YOUR_LND_HOST>
    external_host=<YOUR_LND_HOST>
    port=9735
    rpc_port=10009
    tls_cert_path=/root/.lnd/tls.cert
    macaroon_path=/root/.lnd/data/chain/bitcoin/testnet/admin.macaroon
    
    [bitcoin]
    rpc_host=btcd
    rpc_port=18334
    rpc_user=devuser
    rpc_pass=devpass
    
    [server]
    rpc_host=0.0.0.0
    rpc_port=8774
    
    [admin]
    rpc_host=0.0.0.0
    rpc_port=8994
    
  • Run the createdb.sql script on the postgres server to initialize the database.
  • Install the server requirements:
    $ pip3 install -r requirements.txt
    $ cp proto/* squeakserver/proto/
    $ python3 setup.py install
    
  • Start the squeak server:
    $ runsqueakserver --config config.ini run-server