Commit graph

781 commits

Author SHA1 Message Date
Jonathan Zernik
36d89bd25e
Fix peer server thread shutdown (#903) 2021-08-10 18:48:00 -07:00
Jonathan Zernik
7d266cdf5e
Split peer server client (#901)
* Split peer server and peer client

* Got itest passing

* Catch exception when closing peer socket

* Reconfigure all itests to run
2021-08-10 02:16:46 -07:00
Jonathan Zernik
f652915355
Use tcp peer connection (#900)
* Got basic tcp connection working

* Got passing itest for open tcp connection

* Got most of protocol working. still need to send offer correctly

* Got offer from peer over tcp connectrion

* Got single squeak download working on tcp connection

* Remove rpc peer client

* Remove old rpc clients

* Remove old squeak client modules

* Got sharesqueaks peer message working

* Remove peer rpc server

* Remove server rpc fixtures

* Remove old itests

* Remove old sync modules

* Run worker background task to keep peers synced

* Add peer connection worker

* Add test for disconnect peer

* Remove old itest util

* Delete old peer rpc client helpers.

* Handle insert duplicate received offer

* Use more specific exception handling for duplicate offer insert
2021-07-09 21:07:46 -07:00
yzernik
91e6af516a Release version 0.1.42 2021-06-05 18:08:26 -07:00
Jonathan Zernik
d78ddfc8c1
Remove log lines for debugging delete old squeaks (#898) 2021-06-05 00:14:31 -07:00
Jonathan Zernik
ccc40f4cc1
Downdgrage lnd version to 0.11 (#897) 2021-06-04 19:38:31 -07:00
Jonathan Zernik
b935785469
Use timestamp for like field (#896)
* Use a timestamp for like field in database

* Use query to get liked squeaks in order of like
2021-06-04 18:28:42 -07:00
Jonathan Zernik
a5b5d417d5
Update lnd version (#895) 2021-06-04 15:05:30 -07:00
Jonathan Zernik
1beebe2dc8
Remove extra log line in download (#894) 2021-06-02 00:55:56 -07:00
Jonathan Zernik
ad36244587
Remove interested option, use download criteria (#893) 2021-06-02 00:36:07 -07:00
dependabot[bot]
b63ee36358
Bump @grpc/grpc-js from 1.0.5 to 1.1.8 in /frontend (#891)
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) from 1.0.5 to 1.1.8.
- [Release notes](https://github.com/grpc/grpc-node/releases)
- [Commits](https://github.com/grpc/grpc-node/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-01 18:04:31 -07:00
Jonathan Zernik
8178a114b8
Pin version of sqlalchemy (#890) 2021-03-18 20:58:24 -04:00
Jonathan Zernik
1a35af505b
Simplify download protocol (#889)
* Simplify download protocol in peer connection

* Simplify download method more in peer connections

* Simplify download squeak helper method
2021-02-26 15:14:27 -05:00
Jonathan Zernik
d92d96a796
Remove old testnet ports from expose in dockerfile (#882) 2021-02-22 21:49:38 -08:00
Jonathan Zernik
b7658932a9
Use query instead of iteration to get saved received offer (#881) 2021-02-22 21:40:44 -08:00
yzernik
d9b5613480 Release version 0.1.41 2021-02-22 21:05:17 -08:00
Jonathan Zernik
bfbb4ba335
Only delete squeaks that are not liked (#880) 2021-02-22 20:54:32 -08:00
Jonathan Zernik
c4477a9168
Add liked page (#879)
* Add query filter for getting only liked squeak displays

* Got liked page working

* Fix showing action bar for squeak page with null squeak
2021-02-22 20:17:45 -08:00
Jonathan Zernik
6a71bf5129
Add liked column (#878)
* Add liked column to squeak table

* Add rpc methods for like and unlike

* Fix migration to add liked column

* Got like squeak working

* Set squeak liked without reloading page

* Download squeak button reloads squeak without reloading page

* Use inconbutton for actions in squeak detail component

* Update static build
2021-02-22 18:54:20 -08:00
Jonathan Zernik
693bd782cc
Yield squeaks to delete query result (#877)
* Use yield for squeaks to delete query result

* Fix calling yield old squeaks method
2021-02-22 15:00:35 -08:00
Jonathan Zernik
26903592dd
Use config for offer deletion interval (#876) 2021-02-22 12:57:16 -08:00
Jonathan Zernik
2c42166bec
Add delete old squeak db method (#875)
* Add squeak deletion worker

* Fix method name for delete old squeaks

* Got squeak deletion worker working
2021-02-22 12:40:45 -08:00
Jonathan Zernik
157808fb70
Log error when peer sync fails (#872) 2021-02-21 21:49:12 -08:00
yzernik
643a8d2341 Release version 0.1.40 2021-02-21 20:47:50 -08:00
Jonathan Zernik
d6e1fd6b5e
Remove logs from server handler with number of hashes to download (#871) 2021-02-21 20:43:53 -08:00
Jonathan Zernik
cc55f8da2f
Delete verbose info level logs for delete expired offers (#870) 2021-02-21 20:38:53 -08:00
Jonathan Zernik
29ee9ab14b
Add config for payment processor subscribe invoices retry tyime (#869) 2021-02-21 20:20:12 -08:00
Jonathan Zernik
a93025a026
Save host and port of buyer client (#868)
* Save host and port of buyer client

* Show buyer port in frontend for received payments
2021-02-21 20:01:02 -08:00
Jonathan Zernik
55b9c61b60
Use lightning address internally for received offer (#867)
* Rename database columns for lighting host and port

* Fix parsing of peer host and peer port in database query

* Fix parsing of lightning host and port in database query
2021-02-21 16:50:23 -08:00
yzernik
9c4edef324 Release version 0.1.39 2021-02-21 15:35:47 -08:00
Jonathan Zernik
c77bc943e8
Use host and port to identify peer in received offer and sent payment (#866) 2021-02-21 15:29:00 -08:00
yzernik
39c1801fae Release version 0.1.38 2021-02-21 13:11:40 -08:00
Jonathan Zernik
f111aabd98
Use configurable retention for sent offer deletion (#865) 2021-02-21 13:05:22 -08:00
Jonathan Zernik
5b37fcb6f1
Only show received offers that are not paid (#864) 2021-02-21 11:34:16 -08:00
Jonathan Zernik
ce72374bfa
Add paid column offers (#862)
* Added paid column to sent offer and received offer tables

* Add paid column to offers tables

* Fix db query clause functions
2021-02-21 10:36:02 -08:00
Jonathan Zernik
4766f34cbb
Remove unique constraint on offer squeak hash client addr (#857)
* Remove unique constraint on squeak hash and client addr in sent offer

* Reinitialize db migrations
2021-02-16 15:08:39 -08:00
Jonathan Zernik
9350207201
Use helper method in payment processor for handle received payment (#856) 2021-02-16 09:53:12 -08:00
Jonathan Zernik
530ae7b86c
Simplify payment processor (#855)
* Got simplified payment processor working

* Remove log lines

* Trying to get payment processor working without passing stopped to subscripion

* Revert "Trying to get payment processor working without passing stopped to subscripion"

This reverts commit e691a37d24.

* Use settle index int as input to squeak core subscribe function

* Remove settled invoice subscription client

* Use object with cancel method in squeak core subscription response

* Got itest passing with new received payment iterator

* Remove unused arguments from squeak core get received payments method.

* Improve params for payment processor task

* Handle lnd invoice subscription cancel without raising exception

* Add logging to payment processor

* Add custom exception for unable to subscribe invoices

* Add type hint for get sent offer fn
2021-02-16 09:28:49 -08:00
Jonathan Zernik
512f860728
Remove unused constants from settled invoice subscription client (#852) 2021-02-14 10:29:23 -08:00
Jonathan Zernik
02c9e91d01
Add settled invoice subscription client (#851)
* Create new class for settled invoice subscription client

* Delete log line from squeak_core in process received payment
2021-02-14 10:27:44 -08:00
Jonathan Zernik
131fa72b47
Handle db error in received payment client and keep retrying (#847)
* Handle db error in received payment client and keep retrying

* Retry populating queue of received payments after failure

* Use poison pill to shut down payment subscription client on rpc server shutdown

* Add more debugging logs

* Detect when client disconnects from payments rpc subscription and stop thread.

* Got new received payments subscription client working
2021-02-14 09:14:07 -08:00
Jonathan Zernik
bd617f18c1
Remove sync result message (#845)
* Remove sync result from protocol

* Update static build after proto change for sync result
2021-02-13 09:31:27 -08:00
Jonathan Zernik
4f1272cc26
Add more type hints controller (#843)
* Use more type hints in controller

* Add type hints for squeak entry detail and sent offer
2021-02-13 09:09:04 -08:00
Jonathan Zernik
00c8bd9769
Move controller to node directory (#841)
* Move squeak controller class to node directory

* Move test squeak controller to test node directory
2021-02-13 07:46:00 -08:00
Jonathan Zernik
5457460bfc
Add some type hints for controller (#839) 2021-02-13 06:17:16 -08:00
Jonathan Zernik
18ddb6b860
Check if interested in save squeak method (#838)
* Check if interested inside save_squeak in controller

* Add skip_interested_check option to download squeak method for force download
2021-02-13 06:00:23 -08:00
Jonathan Zernik
d30150febc
Fix config name for max squeaks per address per block (#835) 2021-02-13 04:28:36 -08:00
Jonathan Zernik
791b76bd1b
Use single method to save squeak in controller (#834)
* Use single save_squeak method in controller

* Remove new lines from save_squeak method

* Add separate methods for save uploaded, downloaded, created squeak

* Simplify insert squeak method in database

* Add TODO comment for insert squeak method

* Improve code style of parse squeak entry method

* Add itest for failed upload without decryption key
2021-02-13 04:13:11 -08:00
Jonathan Zernik
5604cae842
Use block height for rate limiter (#832)
* Use block height for checking rate limiter limit

* Use block height for rate limiter limit count

* Remove print post squeak exception from itest
2021-02-13 02:35:22 -08:00
Jonathan Zernik
bd2c4e1642
Use saved clauses in db class (#830)
* Use saved clause for squeak_has_secret_key

* Use clause property to filter where squeak has no secret key

* Remove old queries for verifying block headers

* Use properties for query clauses to filter profile has private key

* Use method for squeak age filter clause

* Fix name of filter by squeak newer than method

* Use methods for clauses to filter offers by expired or not

* Use property for clause to filter received offer does not exist

* Delete old commented queires
2021-02-13 01:03:36 -08:00