Commit graph

129 commits

Author SHA1 Message Date
Jonathan Zernik
b29a8ca8ea
Remove whitelisted attribute, use following to build whitelist (#386)
* Remove whitelisted attribute, use following to build whitelist

* Fix update whitelist on set profile following method

* Remove whitelist feature toggle from fronted

* Update frontend build
2020-11-05 14:12:23 -05:00
Jonathan Zernik
ab3284dafc
Use hex string for squeak hash everywhere (#384)
* Use hex string for squeak hash everywhere

* Fix squeak hash in post squeak method
2020-11-05 12:54:59 -05:00
Jonathan Zernik
8c4db6f85a
Rename squeaknode docker container (#377) 2020-11-04 23:35:32 -05:00
Jonathan Zernik
724f72f1e5
Use more config defaults (#376)
* Use default configs for webadmin

* Remove sqlite config from config file

* Use default config for sqk dir

* Use derived default lnd tls cert path in config

* Use default config for macaroon path

* Remove macaroon path config from docker config.ini

* Got mainnet working in docker

* Update readme

* Remove unused network param in docker config.ini file

* Update readme
2020-11-04 23:18:04 -05:00
Jonathan Zernik
225cd7fdf1
Use better config defaults (#375)
* Use default ports for bitcoin rpc

* Use default configs for lnd ports

* Use default configs for server host/port and admin host/port
2020-11-04 21:24:04 -05:00
Jonathan Zernik
611e13c07f
New config class (#374)
* Create new config class

* Load lnd configs from new config class

* Use new config class for server and webadmin

* Use new config for webadmin

* Fix boolean configs for webadmin

* Use new config class for squeaknode configs

* Use new config for postgresql configs

* Use configparser get method for all configs

* Remove old configparser from main module
2020-11-04 19:06:49 -05:00
Jonathan Zernik
d73b40c4c3
Rename getoffer rpc method (#373) 2020-11-04 07:19:39 -05:00
Jonathan Zernik
4e9bc47440
Simplify get squeak with cleared decryption key (#366)
* Simplify get squeak method of squeak store working

* Shorten sleep time for mining blocks
2020-11-04 02:23:22 -05:00
Jonathan Zernik
9e1defb037
Yield results from network sync (#360)
* Use queue to signal peer sync completion/failure

* Got network sync result from multiple peers

* Add peer connection class

* Got network sync working with network sync class

* Simplify peer timeline sync

* Remove old comments

* Make timeline sync and single squeak sync work for both upload and download

* Simplify timeline sync worker

* Got itest working for sync squeaks and download squeak

* Got sync squeak and sync squeaks rpc methods working with reply on completion of sync.

* Delete unused node controller class
2020-11-03 02:46:07 -05:00
Jonathan Zernik
fc81868e45
Add download single squeak method (#349)
* Add download single squeak method

* Add test for download squeak rpc method

* Imprive peerdownload class to only use block height only for sync method
2020-10-30 23:31:16 -04:00
Jonathan Zernik
99ddc2df77
Rename to squeaknode (#342)
* Rename squeakserver to squeaknode and get itest passing

* Fix itest dockerfile

* Rename more squeakserver to squeaknode

* Rename database from squeakserver to squeaknode

* Update readme

* Remove frontend/build from git

* Rename squeakserver to squeaknode in tox and main
2020-10-29 14:35:17 -04:00
Jonathan Zernik
ee27bcb6ee
Add config to enable admin web server (#315) 2020-10-23 21:31:06 -04:00
Jonathan Zernik
7051a07361
Add rpc method for get sent payment by id (#300) 2020-10-18 16:23:59 -04:00
Jonathan Zernik
e834547cf6
Get sent payments working in test (#299) 2020-10-18 14:26:58 -04:00
Jonathan Zernik
8ebdc754ca
Add pay offer dialog and backend method (#296)
* Add insert sent payment method

* Delete db container from itest

* Add other container in itest

* Connect to other squeak node in itest

* Use client lightning container for itest to get offers from main node

* Get offers itest working

* Open channel to buy offer in itest

* Successfully pay offer

* Remove old print statements from itest

* Successfully unlock squeak in pay offer method

* Assert that decrypted content is correct in pay offer itest
2020-10-18 00:27:49 -04:00
Jonathan Zernik
92a77ce7bb
Add subscribe channel events rpc (#283)
* Add subscribe channel events rpc

* Upgrade lnd to 0.11.1 (#284)

* Got test working for open and close channel with subscriptions
2020-10-11 07:01:35 -07:00
Jonathan Zernik
45b089ce93
Add open channel close channel (#282)
* Add open channel and close channel rpc

* Use different context managers for open channel and connect peer

* Add test for opening channel rpc
2020-10-11 04:21:07 -07:00
Jonathan Zernik
8b9f87990d
Show peer connection in lightning node (#280)
* Show peer connection status for lightning node

* Add connect peer button to lightning node page

* Add test for connect peer

* Add working test for list peers and connect peer

* Add test for disconnect peer

* Fix sqk dir config

* Fix sqk_dir config

* Successfully connect to sqkserver_other in docker-compose

* Remove unused dialog from lightning node page
2020-10-09 05:55:32 -07:00
Jonathan Zernik
48b1b34338
Add list peers rpc method (#279) 2020-10-05 07:18:14 -07:00
Jonathan Zernik
41a6a87545
Use docker-compose build with option to fix dockerignore (#273) 2020-10-02 19:09:05 -07:00
Jonathan Zernik
24d041348f
Add test for send coins (#267)
* Add itest for sendcoins and get transactions

* Rename send coins itest
2020-09-30 01:37:23 -07:00
Jonathan Zernik
3a6011c645
Add get transactions rpc (#266)
* Add get transactions rpc method

* Use context manager for opening channel in itest

* Set up lnd connection in open connection context manager
2020-09-29 23:07:58 -07:00
Jonathan Zernik
71a2dacdb9
Add list channels rpc (#265)
* Add rpc method for list channels

* Add test for list channels rpc method
2020-09-29 20:49:11 -07:00
Jonathan Zernik
377eaa62d5
Add receive bitcoin button (#262)
* Add receive bitcoin button

* Add new address rpc method

* Successfully show new address in dialog in wallet

* Make address field in new address dialog read only
2020-09-28 02:02:42 -07:00
Jonathan Zernik
8d1bb513ac
Run codeformat with tox (#258) 2020-09-26 01:51:41 -07:00
Jonathan Zernik
b8dfac1e75
Use sqlite db file (#257)
* Use file for sqlite db

* Use squeak as relative path parent for sqlite db file
2020-09-26 01:30:47 -07:00
Jonathan Zernik
5f482bf9be
Fix ipv6 in lnd docker itest (#256)
* Fix ipv6 in lnd docker itest

* Clean up itest.sh
2020-09-21 01:00:48 -07:00
Jonathan Zernik
fafb89006a
Add config to enable sync (#255)
* Add config to enable sync

* Include block information in logs
2020-09-16 01:47:36 -07:00
Jonathan Zernik
1681776ebe
Use sqlite (#253)
* sqlite db engine works in itest

* Remove unused comment

* Use integer for invoice timestamp and invoice expir

* Fix insert offer

* Remove show tables in queries
2020-08-20 03:33:37 -07:00
Jonathan Zernik
b88dce6146
Move main module (#252)
* Move main module out of server folder

* Check which database is used to load engine

* Remove imported lnd proto modules in lightning client
2020-08-20 00:34:14 -07:00
Jonathan Zernik
2735d80d3f
Use sqlalchemy queries (#250)
* Use sqlalchemy for insert peer

* Use sqlalchemy to get peer by id

* Use sqlalchemy for get_peers

* Use sqlalchemy for set peer downloading

* Use sqlalchemy for peer delet

* Use sqlalchemy to insert squeak

* Use sqlalchemy for get squeak

* Use sqlalchemy to get squeak with profile

* Use sqlalchemy to get followed squeaks

* Use sqlalchemy for get squeaks for address

* Use sqlalchemy for get thread ancestor squeaks

* Use sqlalchemy for lookup query

* Use sqlalchemy for lookup squeaks by time

* Use sqlalchemy for lookup squeaks needing offers

* Use sqlalchemy for profile queries

* Use sqlalchemy for profile updates

* Remove log lines from insert squeak

* Use sqlalchemy for get unverified block squeaks

* Use sqlalchemy for insert offer

* Use sqlalchemy for get offer with peer

* Use sqlalchemy to delete expired offers

* Remove import of psycopg2 in db class

* Delete init.sql file
2020-08-19 21:24:35 -07:00
Jonathan Zernik
86a3bd5ba1
Get offers in sync thread (#240)
* Get offers in sync background thread

* Fix get squeaks needing offer database query

* Fix getting squeak download and offer in signle sync

* Remove get offer controller

* Remove old comments and log lines

* Remove load offers rpc method
2020-08-15 17:41:09 -07:00
Jonathan Zernik
de69b8313e
Fix itest to work with new buy offer response message (#237) 2020-08-07 18:15:39 -07:00
Jonathan Zernik
901b257b37
Add peer get offer (#230)
* Add rpc method to load buy offers for squeak hash

* Add test for load buy offers

* Fix get buy offer method challenge parameter

* Add get offers rpc method

* Fix min_block and max_block params in lookup request
2020-08-05 20:48:49 -07:00
Jonathan Zernik
fe47116430
Add delete profile method (#218) 2020-08-04 03:33:14 -07:00
Jonathan Zernik
e7a515fae3
Add delete peer method (#217)
* Add delete peer method

* Include error details when peer resource not found
2020-08-04 03:07:32 -07:00
Jonathan Zernik
2486a05d60
Rename subscription to peer (#212)
* Rename subscription to peer

* Rename subscribed to downloading

* Rename publishing to uploading

* Rename subcription to peer in frontend
2020-08-03 04:20:05 -07:00
Jonathan Zernik
bb15da7058
Add squeak store class (#201)
* Add squeak store class

* Use squeak store class to save squeaks made from make method

* Use squeak store class to get public squeak for server get

* Use squeak store class for other squeak node methods
2020-08-01 21:27:07 -07:00
Jonathan Zernik
912d122e2c
Add sleep in itest so htlc settles before close (#198) 2020-08-01 17:02:07 -07:00
Jonathan Zernik
3c1d7aca36
Add set subscribed rpc method (#197)
* Add set subscribed rpc method

* Add set publishing rpc method
2020-08-01 16:51:23 -07:00
Jonathan Zernik
874f27df58
Rename subscription (#192)
* Rename addserver request to createsubscription

* Rename server to subscription

* Show subscriptions in frontend
2020-08-01 04:52:35 -07:00
Jonathan Zernik
b16af17224
Add get servers rpc method (#190) 2020-08-01 01:24:48 -07:00
Jonathan Zernik
a3cd29f430
Run codeformat (#184) 2020-07-31 16:47:17 -07:00
Jonathan Zernik
80713c94ea
Use network config from config file to set paramas (#182) 2020-07-31 03:06:10 -07:00
Jonathan Zernik
5976623f74
Add itest for lookup method (#181) 2020-07-31 01:57:02 -07:00
Jonathan Zernik
10b93dd03b
Add server table (#179)
* Add server table

* Add server rpc method

* Add method to get server by id
2020-07-30 05:25:45 -07:00
Jonathan Zernik
7c4b84056b
Use created time for rate limiter (#178)
* Use created time to rate limit based on last hour

* Delete commented lines in rate limiter
2020-07-30 03:05:21 -07:00
Jonathan Zernik
6ce7723c35
Remove print line from itest (#177) 2020-07-30 02:19:20 -07:00
Jonathan Zernik
1438b96de4
Add delete squeak method (#174) 2020-07-30 00:42:44 -07:00
Jonathan Zernik
fd23d38fa3
Rename sell itest (#173) 2020-07-29 23:23:48 -07:00