Commit graph

140 commits

Author SHA1 Message Date
Jonathan Zernik
2cabb8197a
Use only named volumes in docker-compose (#2221)
* Use only named volumes in docker-compose

* Try fixing itest with new docker compose

* Update development doc
2022-06-09 17:58:18 -07:00
Jonathan Zernik
aef32d9417
Remove zqm hash block config (#2219) 2022-05-24 22:06:23 -07:00
Jonathan Zernik
ed360ff3d1
Add clightning backend support (#2205)
* Add c-lightning support

* Got subscribe paid invoices working with c-lightning

* Remove log lines

* Use a single config section for all lightning configs

* Fix itest config

* Update configuration doc with new confis
2022-05-08 12:41:44 -07:00
Jonathan Zernik
b5b3b9f1f3
Rename entrypoint script (#2171) 2022-04-25 16:32:31 -07:00
Jonathan Zernik
b9761476d2
Upgrade lnd in docker (#1852) 2021-12-14 06:26:16 -08:00
Jonathan Zernik
ecf3d8cecb
Use docker tor simple (#1847)
* Got docker-compose working with tor-simple tor proxy

* Got itest working with simple-tor docker image

* Delete old commented containers for tor
2021-12-13 11:36:25 -08:00
Jonathan Zernik
c53fe89096
Move tor configs to separate section (#1629)
* Move tor configs to separate section

* Update readme with new tor config section
2021-10-17 23:11:22 -07:00
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
Jonathan Zernik
6aae503de8
Create lightning client base class (#1542)
* Add unit test for add invoice in test lnd lightning client

* Add new create invoice method of lightning client and add unit test
2021-10-08 20:40:58 -07:00
Jonathan Zernik
411f050c93
Got itest working with lnd using tor for both listen and connect (#1495)
* Got itest working with lnd using tor for both listen and connect

* Got itest working with configurable target address for lnd tor config

* Update development doc with tor service in background services
2021-10-04 18:33:16 -07:00
Jonathan Zernik
028b0b5ef1
Use separate lnd container in docker compose (#1479)
* Other lnd container in docker-compose seems to work

* Add new docker-compose using btcd

* Fix external host config for docker-compose

* Remove btcctl container from docker-compose in docker dir

* Mount btcd rpc certs dir to host dir

* Revert "Mount btcd rpc certs dir to host dir"

This reverts commit a79246fb3c.

* Use bitcoin-core instead of btcd in docker-compose.btcd

* Got squeaknode connection and buy working from host machine to container

* Got host to container connection working in main docker-compose

* Remove old comments from docker-compose

* Make squeaknode container use persistent volume

* Add tor proxy to dockerfile

* Update development doc with containerized squeaknode info

* Remove docker-compose.btcd.yml

* Remove unused configs from docker config.ini

* Add zmq hash block port to docker config.ini
2021-10-04 15:12:45 -07:00
Jonathan Zernik
10ec953084
Remove unused volumes section from docker-compose (#1446) 2021-09-30 13:56:03 -07:00
Jonathan Zernik
d797e76ed4
Run extra squeaknode instance in docker-compose (#1444) 2021-09-29 22:47:39 -07:00
Jonathan Zernik
51bc17ace2
Add waiting indicator for lnd node connect disconnect (#1343)
* Add waiting indicator for lnd node page click connect or disconnect

* Improved lightning page so page doesn't reload on list peers response

* Fix react warning by making listPeers function useCallback

* Run frontend lint

* Update frontend build
2021-09-18 19:00:04 -07:00
Jonathan Zernik
c6d70ad862
Simplify wait for block index script (#1321) 2021-09-17 11:12:42 -07:00
Jonathan Zernik
e83cbf1faa
Update lnd dockerfile (#1320)
* Update lnd dockerfile

* Remove old comment from lnd start script
2021-09-17 11:04:29 -07:00
Jonathan Zernik
2f7ae0114d
Use v0.21.1 of bitcoin in local docker (#1315) 2021-09-16 15:44:22 -07:00
Jonathan Zernik
c8055d1469
Use v0.22.0-beta of btcd for itest (#1314) 2021-09-16 15:34:55 -07:00
Jonathan Zernik
2ca8317403
Got itest working with LND v0.13.1-beta (#1307) 2021-09-16 10:39:59 -07:00
Jonathan Zernik
be1ab4c79e
Update config.ini in docker directory (#1289)
* Update config.ini in docker directory

* Update config.ini in readme

* Use mainnet configs for readme
2021-09-14 22:53:07 -07:00
Jonathan Zernik
b9dad8ce0e
Remove envoy code (#1233) 2021-09-08 16:50:00 -07:00
Jonathan Zernik
a0129558d4
Implement block subscription client (#1141)
* Got block subscription working in background thread

* Use separate port for hashblock zeromq subscription

* Update subscription on new block

* Enable checking for block range in interest match function

* Remove unused zmq subscriptions

* Fix squeak interest match function
2021-09-01 06:06:11 -07:00
Jonathan Zernik
d9150be433
Delete old peer rpc proto (#986) 2021-08-20 00:30:50 -07:00
Jonathan Zernik
e60bcdef65
Remove ports config from envoy container (#979) 2021-08-19 16:00:41 -07:00
Jonathan Zernik
ebf08e7fe0
Use envoy proxy for rpc (#977)
* Got basic envoy proxy use working

* Got envoy proxy working with frontend dev mode and envoy v 1.16.0

* Change envoy proxy port to 15081
2021-08-19 15:14:14 -07:00
yzernik
eb15a1bf53 Revert to version before envoy proxy 2021-08-19 02:13:00 -07:00
yzernik
6a7bd3804d Revert commit: 9ab6dba379 2021-08-19 00:11:06 -07:00
Jonathan Zernik
afd8787027
Use envoy frontend proxy (#971)
* Envoy requets seems to be working

* Use grpcweb with proxy for get timeline squeaks
2021-08-18 18:52:39 -07:00
Jonathan Zernik
ccc40f4cc1
Downdgrage lnd version to 0.11 (#897) 2021-06-04 19:38:31 -07:00
Jonathan Zernik
a5b5d417d5
Update lnd version (#895) 2021-06-04 15:05:30 -07:00
Jonathan Zernik
bf0729220a
Fix mainnet override for docker compose (#649) 2021-01-13 22:32:08 -08:00
Jonathan Zernik
9b14c8016b
Package for umbrel (#528)
* Switch dockerfile base image to buster

* Try to make build work for umbrel

* Remove libs from Dockerfile

* Add build-essential to dockerfile

* Make sqk_dir configurable with environment variable

* Use new env var names
2020-12-30 16:46:48 -08:00
Jonathan Zernik
5d436acbdb
Add the missing postgres ubuntu package in dockerfile (#524) 2020-12-28 14:52:13 -08:00
Jonathan Zernik
e966f73db1
Update db to use Timestamp for times (#519) 2020-12-27 23:32:02 -08:00
Jonathan Zernik
5b22b25ad0
Run squeaknode directly on host without docker (#518) 2020-12-27 20:55:52 -08:00
Jonathan Zernik
34ec5deee8
Use python slim docker base image (#516)
* Use python slim image for both squeaknode and test

* Clean up dockerfiles

* Reorder dockerfile for squeaknode

* Load alembic config file from packaged module

* Alembic directory is now loaded from packaged module

* Got multi-stage docker build working

* Removed old app directory from docker config

* Remove commented package data arg from setup.py

* Remove unused alembic graft from manifest

* Fix extra space in alembic revision
2020-12-27 04:59:59 -08:00
Jonathan Zernik
a7564b3326
Fix all codecheck errors in source code (#512) 2020-12-26 04:16:11 -08:00
Jonathan Zernik
00fc72514f
Use squeaklib with ptlc (#502)
* Rename secret_key

* More work to convert to using PTLC

* Updated most code for PTLC

* More work to use ptlc with secret key

* Got itest passing

* Remove unused import

* Use version 0.5.0 of squeaklib

* Added simple unit test for squeak controller

* Use modular addition subtraction for secret key nonce tweak

* Move util to core folder

* Store secret key as hex in database

* Store nonce as hex in db
2020-12-25 20:17:54 -08:00
Jonathan Zernik
fad797fa45
Fix wait for block index in lnd (#487)
* Fix bug where trying to kill same process twice.

* Increase time to check for running lnd
2020-11-24 01:49:19 -05:00
Jonathan Zernik
c62d4229cf
Remove btcd cert shared volume (#486)
* Remove shared volume for btcd cert file

* Got ssl cert working as a config

* Remove old comment about adding ssl certificate in dockerfile
2020-11-24 01:18:53 -05:00
Jonathan Zernik
c1e1f7c224
Wait for lnd to succeed in connecting to bitcoin before starting (#485) 2020-11-23 23:06:34 -05:00
Jonathan Zernik
dbd3598eb9
Reduce lnd sleep time to 30 s (#484) 2020-11-23 21:04:11 -05:00
Jonathan Zernik
64643b25a8
Use docker compose overrides for testnet mainnet (#482)
* Use default override file for docker-compose testnet

* Add mainnet docker-compose override file

* Put common environment variables in main docker-compose file

* Update readme with instructions for mainnet override
2020-11-23 20:43:19 -05:00
Jonathan Zernik
a43576a10e
Use bitcoincore for bitcoin node (#481)
* Got docker-compose working with bitcoin-core

* Got itest working

* Add bitcoin use_ssl config

* Rename service to bitcoin-core in docker-compose
2020-11-23 14:43:17 -05:00
Jonathan Zernik
cbd7a8b2a7
Use testnet by default (#477) 2020-11-22 22:55:58 -05:00
Jonathan Zernik
7195174a8b
Rename common module to lightning (#439) 2020-11-10 18:50:33 -05:00
Jonathan Zernik
6641e64995
Use msat as price unit (#427)
* Use price_msat for config and internally

* Use price_msat in admin protocol for offer message

* Use price_msat in sent payments table and protocol

* Update frontend to use new protocol with price_msat for offer

* Update static build
2020-11-10 02:35:24 -05:00
Jonathan Zernik
53fa118f20
Remove max squeaks config from docker config.ini (#426) 2020-11-09 23:12:22 -05:00
Jonathan Zernik
05e03a5979
Fix sync interval s config (#425) 2020-11-09 22:56:08 -05:00
Jonathan Zernik
2a0e861fb2
Add sync_interval_s config (#424) 2020-11-09 22:39:06 -05:00