Commit graph

279 commits

Author SHA1 Message Date
Jonathan Zernik
b42e783338
Add node info tab (#245)
* Add node info tab in lighting page

* Add node pubkey to node status tab
2020-08-17 00:45:15 -07:00
Jonathan Zernik
4fe34e2696
Use tabs for lightning page (#244)
* Use tabs for lightning page

* Use singleton instance of client class
2020-08-16 23:18:43 -07:00
Jonathan Zernik
cb27225b5e
Make logs less verbose with debug level (#243) 2020-08-16 00:29:27 -07:00
Jonathan Zernik
0ba4d90f03
Fix proto field numbering for buy offer respnose (#242) 2020-08-15 18:49:05 -07:00
Jonathan Zernik
61c460de40
Add thread to remove expired offers (#241)
* Add thread to remove expired offers

* Remove old comment from squeak offer getter

* Remove load offers request from buy frontend page
2020-08-15 18:36:21 -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
1394c0b620
Include expiry info in offer message (#239)
* Include expire time in offer message

* Show expire time in offer display component
2020-08-07 20:51:31 -07:00
Jonathan Zernik
f9313527ec
Include peer in offer response (#238)
* Include peer in offer display entry

* Show peer info in offer item display
2020-08-07 19:31:35 -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
e0ac71ac36
Remove amount and pubkey from buy offer reponse message (#236) 2020-08-07 17:59:08 -07:00
Jonathan Zernik
686edbcd77
Decode payment request on get offer (#235)
* Decode payment request after getting offer

* Decode amount and node_pubkey from payment request string

* Rename fields in offer database table

* Include invoice time and expiry time in offer table

* Fix block time display in squeak detail component
2020-08-07 17:50:06 -07:00
Jonathan Zernik
a365128b40
Show offers in buy page (#234)
* Successfully load offers from rpc request

* Create offer item component

* Change display of offers
2020-08-06 18:15:39 -07:00
Jonathan Zernik
9648e70034
Improve logging in uploader and downloader (#233) 2020-08-06 01:56:58 -07:00
Jonathan Zernik
de353e5891
Add get offers method (#232)
* Include offer id field in offer namedtuple

* Add go to buy page on click on buy button

* Use button for buy click area in squeak detail component
2020-08-06 01:43:10 -07:00
Jonathan Zernik
be36252131
Add buy page (#231)
* Add todo comments to handle exceptions in upload/download

* Log the proof and expected proof in get offer task

* Convert offer message to namedtuple

* Successfully save offer in database
2020-08-05 23:39:52 -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
4e58415299
Add offer table (#229)
* Add offer table to db schema

* Add offer table to db schema

* Add sent payment table
2020-08-05 04:16:08 -07:00
Jonathan Zernik
fc08f74801
Improve setup download upload threads (#228)
* Improve setup of download and upload threads

* Rename squeak peer sync worker class
2020-08-05 02:44:22 -07:00
Jonathan Zernik
ba3b7f9b2d
Add buy to unlock text box in squeak detail component (#227) 2020-08-05 01:18:47 -07:00
Jonathan Zernik
d956cda20a
Show locked squeak with icon (#226)
* Show lock icon when squeak thread item is locekd

* Squeak thread item locked display now looks good

* Show squeak detail item differently when locked
2020-08-05 01:00:56 -07:00
Jonathan Zernik
4aebbfbbaf
Reset fields in makesqueak dialog on enter (#225) 2020-08-04 23:51:34 -07:00
Jonathan Zernik
559c1448a5
Remove hello method from rpc (#224)
* Remove old sayhello method from rpc

* Reset dialog fields when create contact dialog starts

* Reset fields in all dialogs when starting dialog
2020-08-04 21:46:17 -07:00
Jonathan Zernik
953173f70f
Add button to create profile for unknown address (#223) 2020-08-04 20:44:33 -07:00
Jonathan Zernik
fd4928e7f1
Show address when author unknown (#222)
* Show address for squeak when author unknown

* Fix left join query to show squeaks for address when profile does not exist
2020-08-04 20:03:03 -07:00
Jonathan Zernik
452d9d37f4
Add delete peer dialog (#221)
* Add delete peer dialog

* Got delete peer button working
2020-08-04 19:03:45 -07:00
Jonathan Zernik
321a754f24
Add delete profile button (#220)
* Delete profile working

* Add delete profile button
2020-08-04 18:36:09 -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
089e0d8fbf
Fail gracefully in block verifier when blockchain not available (#216) 2020-08-04 01:23:43 -07:00
Jonathan Zernik
c53c4b4205
Enable block verifier periodic worker thread (#215) 2020-08-04 01:15:29 -07:00
Jonathan Zernik
af0ffca75a
Add peer sync (#214)
* Add peer sync controller class

* Got sync downloader with remote connection working

* Got lookup hashes to download working in sync downloader

* Add peer sync status class

* Check stopped event flag before continuing with download

* Got peer download running in a separate thread for each peer

* Rename peer download class

* Fix get current download in sync status

* Add peer upload thread

* Got peer upload working

* Got peer download working

* Display different message in frontend when squeak is locked

* Change default quota for upload rate limit
2020-08-04 00:54:14 -07:00
Jonathan Zernik
b032c57117
Redirect to peer page on peer create (#213) 2020-08-03 04:35:29 -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
8767573aef
Update npm dependencies (#211) 2020-08-03 01:46:02 -07:00
Jonathan Zernik
087e68eb0b
Change sqkserver log level in docker (#210) 2020-08-02 23:11:06 -07:00
Jonathan Zernik
6ed3ad7d2f
Change default subscribe update interval to 60 seconds (#209) 2020-08-02 03:45:18 -07:00
Jonathan Zernik
62f6c20b0f
Fail gracefully when blockchain client fails in subscriber (#208) 2020-08-02 03:37:32 -07:00
Jonathan Zernik
f8b6900f34
Comment out to disable subscription downloader thread (#207) 2020-08-02 03:10:59 -07:00
Jonathan Zernik
32bb298cf3
Log current block height in subscriber thread (#206) 2020-08-02 02:37:52 -07:00
Jonathan Zernik
ad0632bd1c
Use blockchain client to get subscription (#205)
* Use blockchain client in subscription class

* Refactor bitcoin blockchain client

* Use blockchain client instead of lightning client in squeak maker
2020-08-02 02:21:28 -07:00
Jonathan Zernik
9db19bcb46
Log all subscription names in subscribe thread (#204) 2020-08-01 23:16:04 -07:00
Jonathan Zernik
3ee17aa367
Run subscriber periodically (#203) 2020-08-01 22:17:28 -07:00
Jonathan Zernik
23fcc66325
Update config in redme (#202) 2020-08-01 21:33:57 -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
94ad7b8005
Add toggles for subscription in frontend (#200)
* Remove unused state from profile page

* Added toggle for subscribed in subscription page

* Add publishing toggle to subscription page
2020-08-01 17:16:55 -07:00
Jonathan Zernik
5aeab1348a
Fix renaming labels in subscriptions page (#199) 2020-08-01 17:03:48 -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
c9a2a3433c
Rename subscribed and publishing in subscription (#196)
* Rename subscribed and publishing fields in subscriptin

* Show publishing and subscribed in subscriptions table
2020-08-01 16:12:03 -07:00
Jonathan Zernik
bb4e4d0c00
Add subscription page and go to it from click on subscription row in table (#195) 2020-08-01 15:30:19 -07:00