Commit graph

531 commits

Author SHA1 Message Date
Jonathan Zernik
de949aff6d
Clean up makefile (#570) 2021-01-06 23:47:50 -08:00
Jonathan Zernik
62c13ddaba
Create peer with default port (#569)
* Added unit test for create peer

* Got test working for create peer with default port

* Use namedtuple for squeak peer class

* Rename test name in test create peer

* Use type hints for insert squeak peer
2021-01-06 23:47:03 -08:00
Jonathan Zernik
c587dc0d5f
Make sync enabled true by default (#567) 2021-01-06 09:35:21 -08:00
Jonathan Zernik
a57021ab0c
Use typed config (#566)
* Use typed config

* Use typed config

* Got bitcoin connection working in main config

* Use better defaults for lnd configs

* Got test working for get network using config fixture

* Use sqk_dir_path instead of sqk_dir

* Add logging of bitcoin configs

* Don't use config option when config file doesn't exist
2021-01-05 23:39:04 -08:00
Jonathan Zernik
d95ac6702f
Update readme simplify config (#564)
* Update README to simplify remove configs

* Remove lnd port from README example config
2021-01-05 14:53:42 -08:00
Jonathan Zernik
59c73c85b3
Add get network rpc method (#563) 2021-01-05 14:37:20 -08:00
Jonathan Zernik
16e8f9bc64
Add unit test for get network method of controller (#561) 2021-01-04 01:28:08 -08:00
Jonathan Zernik
10bd12f2ae
Use noninteractive build in dockerfile (#559) 2021-01-04 00:09:30 -08:00
Jonathan Zernik
27b3e1d166
Update main.yml (#555)
Use mode=max to cache all layers in github docker build
2021-01-03 23:09:10 -08:00
Jonathan Zernik
4b1656642e
Remove old comments in squeak controller (#560) 2021-01-03 22:30:08 -08:00
Jonathan Zernik
0b6b609864
Add unit tests for squeak controller (#557)
* Move squeak controller to core package

* Use config object in squeak controller to access configs

* Remove old comments in squeak controller

* Update unit test

* Add unit test for getting network with squeak_controller
2021-01-03 22:02:55 -08:00
Jonathan Zernik
f263dd60dd
Create main.yml (#554)
* Create main.yml

Add the yaml file for the github action

* Update main.yml

Try build and push docker image

* Update main.yml

Fix image tag

* Update main.yml

Specify platforms in docker build action

* Upgrade pip in dockerfile

* Pin version of grpcio in requirements.txt

* Install pip requirements with only-binary

* Change grpcio version

* Remove only-binary option for pip install

* Update main.yml

cache docker layers

* Update main.yml

Push version tags to dockerhub

* Update main.yml

export and import cache to local

* Update main.yml

Fix image name
2021-01-03 21:00:49 -08:00
Jonathan Zernik
d341d3cbc0
Remove old log lines from squeak_d (#544) 2021-01-02 17:04:46 -08:00
Jonathan Zernik
6e42663c12
Add sync package (#543)
* Move network sync modules to new sync package

* Run sync worker thread from main module

* Got sync worker working in admin handler

* Use squeak_controller in sync_controller

* Use squeak_controller in peer task

* Remove old commented args replaced by squeak_controller

* Use squeak_controller method to get best block height

* Improve constructor for network sync task

* Improve constructor for network sync task
2021-01-02 05:46:49 -08:00
Jonathan Zernik
558380a7ba
Add typed dependencies for mypy precommit (#542) 2021-01-01 23:04:28 -08:00
Jonathan Zernik
285f3d5463
Remove wait-for-it (#541) 2021-01-01 22:52:07 -08:00
Jonathan Zernik
a94d4ccd63
Simplify frontend readme (#539)
* Simplify frontend readme

* Fix bitcoin user and pass configs in frontend readme
2021-01-01 22:21:27 -08:00
Jonathan Zernik
bf57996607
Update frontend dev readme (#538)
* Update instructions for frontend dev

* Update frontend README
2021-01-01 22:08:30 -08:00
Jonathan Zernik
173130ab31
Use mypy precommit hook (#537)
* Add mypy precommit hook

* Add mypy precommit hook
2021-01-01 21:39:33 -08:00
Jonathan Zernik
ca79271d06
Delete createdb script (#536) 2021-01-01 14:53:04 -08:00
yzernik
2fa55414e0 Release version 0.1.5 2020-12-31 19:59:13 -08:00
Jonathan Zernik
b2766f5ab0
Add admin rpc enabled config (#535)
* Add config to enable admin rpc server

* Allow squeaknode to run on mainnet

* Clean up main module more

* Clean up configs in main module more
2020-12-31 19:49:26 -08:00
yzernik
2257f8af4f Release version 0.1.4 2020-12-31 16:57:43 -08:00
Jonathan Zernik
63f8d1ccb3
Don't allow running in mainnet (#533) 2020-12-31 16:56:56 -08:00
Jonathan Zernik
86b2f6895c
Remove createdb script from manifest (#532) 2020-12-31 16:35:31 -08:00
Jonathan Zernik
9fcb87aeed
Make config.ini file optional (#531) 2020-12-31 15:30:58 -08:00
Jonathan Zernik
705ffef8a9
Debug failed webapp reply (#530)
* Add log line to debug webapp hanlder reply

* Log request message

* Log type of handler reply

* Log type of request message

* Fix callling serialize reply

* Remove debug log lines
2020-12-31 08:56:12 -08:00
Jonathan Zernik
98d9b5a87d
Make dockerfile run with cmd (#529)
* Add cmd to dockerfile

* Remove waiting for cert file in start script

* Output docker container dirs before starting script

* Remove failing ls line

* Add lnd tls cert path and macaroon path env vars

* Add env vars for webadmin congis
2020-12-31 00:05:20 -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
yzernik
d06283c9b1 Release 0.1.3 2020-12-29 01:11:32 -08:00
Jonathan Zernik
22f6b4fc3c
Add precommit hooks (#526) 2020-12-28 23:52:32 -08:00
yzernik
089db023c8 Release version 0.1.2 2020-12-28 17:49:09 -08:00
Jonathan Zernik
a930b2cf0e
Use TZDateTime as type for time columns in database (#525) 2020-12-28 17:08:46 -08:00
Jonathan Zernik
5d436acbdb
Add the missing postgres ubuntu package in dockerfile (#524) 2020-12-28 14:52:13 -08:00
Jonathan Zernik
0c9e3c0788
Fix install_requires (#523) 2020-12-28 00:57:37 -08:00
Jonathan Zernik
1d8b25dcae
Use semantic versioning (#522) 2020-12-28 00:34:17 -08:00
Jonathan Zernik
b9f37a545f
Improve readme sections (#521) 2020-12-27 23:55:28 -08:00
Jonathan Zernik
b39f308a90
Update readme for launching no docker (#520)
* Update readme and add separate doc for launching docker

* Fix typo
2020-12-27 23:49:44 -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
0064d8ea48
Makefile test target works now with protos (#515) 2020-12-26 05:29:02 -08:00
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
Jonathan Zernik
a7564b3326
Fix all codecheck errors in source code (#512) 2020-12-26 04:16:11 -08:00
Jonathan Zernik
62f21874f1
Autoformat python code with tox command (#510) 2020-12-26 02:01:22 -08:00
Jonathan Zernik
1a1e92f586
Remove squeak server client class (#509) 2020-12-26 01:33:24 -08:00
Jonathan Zernik
0a5a54554c
Use data classes instead of namedtuples (#508)
* Build mypy files for protos in tox env

* Include mypy check in make test

* Improve building offer from remote peer download

* Remove old methods from peer task
2020-12-26 01:00:58 -08:00
Jonathan Zernik
462626035c
Use data class for block info (#507)
* Use data class for block info

* Use data class for block info and update types
2020-12-25 21:46:11 -08:00
Jonathan Zernik
6eb50b48fd
Remove old commented method from blockchain client (#506) 2020-12-25 20:53:59 -08:00
Jonathan Zernik
bf638f561a
Fix type hints (#505) 2020-12-25 20:51:02 -08:00