Commit graph

162 commits

Author SHA1 Message Date
fusion44
de9a96e621
feat: implement Core Lightning gRPC backend (#98)
Some remaining issues with current implementation:

Some remaining issues with current implementation:

* Some calls require shell access to lightning-cli as some gRPC calls are not yet implemented
* Getting on-chain fund flows is not as nice as it is with LND and required access to the Core Lightning SQlite database
* With current API you can only get current outputs
* High probability of bugs arising

closes #45
2022-06-04 14:10:44 +02:00
fusion44
bb6d6a6bff
chore: dep update; update version to 0.5.0 2022-05-28 12:38:10 +02:00
geco91
0054945171
Exclude .git on sync_to_blitz (#91) 2022-05-27 01:03:37 +02:00
fusion44
a34dd7954c
chore: apply pre_commit, fix typos, update deps 2022-05-18 18:20:13 +02:00
rootzoll
79a1690d11 fix if softforks unavailable 2022-05-18 17:31:43 +02:00
/rootzoll
57f733ebb5
Adding identity_uri to /lightning/get-info (#89) 2022-05-18 00:14:35 +02:00
/rootzoll
5f9bdf4a45
merge: add connection info endpoint (#86) 2022-05-12 19:49:01 +02:00
/rootzoll
d5a7e3f186
Channels: Open, List & Close (#82) 2022-05-09 19:45:18 +02:00
/rootzoll
8fa239f135
Add endpoint to change passwords (#85) 2022-05-09 19:32:47 +02:00
/rootzoll
ce7f82c106
Installapps (#78)
Adding functionallity for setup & installing additional apps ... run with the latest raspiblitz dev scripts.
2022-05-05 13:27:59 +02:00
fusion44
1a230d3214
fix: LND wallet balance request code 2022-04-17 07:58:34 +02:00
fusion44
7d452be179
feat: implement "rawblock" zmq sub as a fallback
Lightning Polar only exposes "rawblock" and not "hashblock
=> make it configurable which one to use
2022-04-05 16:40:18 +02:00
rootzoll
943ee4386b fix post data 2022-03-30 00:59:04 +02:00
rootzoll
a05d71de78 add lightning sync info 2022-03-25 11:33:52 +01:00
rootzoll
8d9c2c7599 add sync status endpoint 2022-03-24 21:56:44 +01:00
fusion44
efdb1c1057
feat: add shutdown/reboot SSE events on initiation
plus:
* add some more documentation
* add error handling when the script fails to run
* a bit of refactoring

refs #70
2022-03-24 20:17:56 +01:00
rootzoll
25ec9f0af5 password & migration implementation 2022-03-24 18:23:10 +01:00
rootzoll
6ceaacfc23 Merge branch 'main' of https://github.com/fusion44/blitz_api 2022-03-23 22:14:41 +01:00
rootzoll
55144f3c6a fresh setup implementation 2022-03-23 22:06:31 +01:00
fusion44
85d2de19e4
chore: fix some naming issues 2022-03-23 21:03:50 +01:00
Christoph Stenglein
924f0643ed
implement reboot & shutdown (#70)
* implement reboot & shutdown
* fix waiting for script by using event loop
* implemented suggestions
* remove unused import
* implement suggestions #2
2022-03-23 20:20:58 +01:00
rootzoll
f057f37cf0 first implementation working for recovery 2022-03-23 00:52:37 +01:00
rootzoll
aa4435656b start also with blitz without lightning 2022-03-21 13:03:15 +01:00
fusion44
84fecd1dcc
feat: implement simple docker compose dev env
refs #62
2022-03-20 19:55:52 +01:00
fusion44
516550bd9f
chore: format source using the pre_commit command 2022-03-20 17:20:56 +01:00
fusion44
20f60abaf3
feat: add a pre-commit hook to format source code
refs #14
2022-03-20 16:00:25 +01:00
fusion44
028cfc866e
feat: improve error messages on startup failures 2022-03-20 10:04:00 +01:00
fusion44
b1dc854dd2
refactor: use app.utils.redis_get() everywhere 2022-03-19 12:36:03 +01:00
fusion44
6546240dff
feat: add ping check to sync_to_blitz script 2022-03-19 12:22:15 +01:00
fusion44
9665d694b7
feat: check defer starting LN and Bitcoin handlers
This really applies only to RaspiBlitz. Depending on the current
setup step there still isn't a Bitcoin Deamon or Lightning Node running.
We must defer the registration of all those handlers until later when
everything is properly setup.

Since there is a final reboot after the setup there is no need to
check in the background whether setup is finished. The API server
is restartet anyway.

refs #71
2022-03-19 09:29:09 +01:00
rootzoll
56039a0593 first implementation /status & /setup_start_info 2022-03-18 12:04:02 +01:00
rootzoll
de840cf1e0 improved sync_to_blitz script 2022-03-16 23:33:44 +01:00
/rootzoll
d466d3ab47
Add TODO for system redis channel 2022-03-16 09:46:58 +01:00
/rootzoll
803404726d
preparing for new setup logic 2022-03-16 09:45:28 +01:00
fusion44
54b4a32f4e
feat: improve sync script 2022-03-13 18:46:47 +01:00
Stefan Stammberger
927bffa701
fix: add fee data to SSE warmup package 2022-01-22 20:47:28 +01:00
Stefan Stammberger
04a93833c5
refactor: rename wallet balance update function 2022-01-15 14:29:55 +01:00
Stefan Stammberger
233a41eb96
feat: implement forward success SSE notifications
refs #64
2022-01-15 14:27:08 +01:00
Stefan Stammberger
18822e68cc
fix: don't update wallet if update is pending 2022-01-15 14:03:44 +01:00
Stefan Stammberger
78db9f3d71
feat: implement basic fee revenue endpoint
closes #48
2022-01-09 20:20:21 +01:00
Stefan Stammberger
c9a2b78a92
feat: add support for zero amount invoices
closes #63
2022-01-09 18:04:10 +01:00
Stefan Stammberger
4157058a54
feat: implement get-system-info backends
Raspiblitz and native-python implementations should work.
Only feature still missing is system health related stuff.

refs #47
2021-12-25 16:53:42 +01:00
Stefan Stammberger
9223a14798
fix: typo in blitz hardware implementation 2021-12-25 08:59:53 +01:00
Stefan Stammberger
739ebdd3a1
feat: round percentages in Blitz hardware repo 2021-12-23 16:29:10 +01:00
Stefan Stammberger
a864e134ed
fix: remove deprecated "publicIP" field 2021-12-23 16:04:02 +01:00
Stefan Stammberger
bc53069234
fix: log a warning if a Redis key doesn't exist 2021-12-23 15:25:51 +01:00
Stefan Stammberger
e4c050d4c4
fix: crash when platform was not set in .env file 2021-12-22 21:46:34 +01:00
fusion44
77db3a16cb
Merge pull request #59 from fusion44/raspiblitz-hw-codepath
Implement hardware status fetching on RaspiBlitz platform
2021-12-18 13:52:48 +01:00
Stefan Stammberger
228ae2100a
feat: set raspiblitz as default platform
Rationale: No need to change RaspiBlitz install scripts
2021-12-18 13:27:47 +01:00
Stefan Stammberger
ab0a8f2575
feat: fetch hardware data via Redis
To keep Blitz API platform independent two code paths have been
implemented. A new "platform" .env variable must be set if running
on a raspiblitz to fetch hardware data from Redis. See the comments
in .env_sample for further explanation.
2021-12-15 21:11:46 +01:00