Commit graph

765 commits

Author SHA1 Message Date
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
Jonathan Zernik
0936e726ff
Remove query filter for non-null block header (#827) 2021-02-12 22:22:55 -08:00
yzernik
b5f5d9e64b Release version 0.1.37 2021-02-12 05:19:01 -08:00
Jonathan Zernik
a4a9a57b86
Add log line for each subscribed settled invoice (#822)
* Add log line for each subscribed settled invoice

* Log latest settle index before processing received payments

* Add log line for settle index before subscribing invoices

* Use -1 for cleared settle_index

* Revert "Use -1 for cleared settle_index"

This reverts commit 701067c40b.

* No-op commit
2021-02-12 05:17:34 -08:00
yzernik
35a37bdacf Release version 0.1.36 2021-02-12 02:00:35 -08:00
Jonathan Zernik
ccab25ae6c
Use BigInteger for settle_index column in database (#820)
* Use BigInteger for settle_index column in database

* Initalize database with settle index as BigInt
2021-02-12 01:51:16 -08:00
Jonathan Zernik
f35182497d
Rename process received payments worker (#819) 2021-02-12 01:02:49 -08:00
Jonathan Zernik
bee8ced886
Add info for reprocess received payments (#818)
* Add info text for process received payments

* Update static build
2021-02-12 00:34:58 -08:00
Jonathan Zernik
9e15962d1a
Allow reprocess invoice without duplicate (#816)
* Allow reprocessing the same invoice without duplicate insert of received payment

* Use stopped event to stop processing invoices

* Got itest working with payment processor class

* Use payment processor class in squeak controller constructor

* Add rpc method for reprocess received payments

* Add reprocess received payments button

* Add reprocess received payments to admin web app

* Handle processing received payments subscription rpc better

* Add frontend button to reprocess received payments

* Clear settle indices in reprocess received payments

* Update static build
2021-02-12 00:14:45 -08:00
Jonathan Zernik
6c0dc044d5
Cleanup old squeak page (#813)
* Delete old comments from squeak page

* Delete old comments from squeak detail component

* Update static build
2021-02-10 04:43:52 -08:00
Jonathan Zernik
cc4b0432d9
Move dialogs inside squeak detail item component (#812) 2021-02-10 04:35:51 -08:00
Jonathan Zernik
b2dd9e7ff3
Add clear image dialog (#811)
* Added clear profile image dialog

* Reload profile without reloading page after making changes

* Update static build
2021-02-10 03:42:01 -08:00
Jonathan Zernik
37609a85d4
Profile dialogs inside component (#810)
* Move dialogs inside squeak profile detail component

* Add rename profile dialog

* Updates static build
2021-02-10 03:03:37 -08:00
Jonathan Zernik
5643972777
Handle exception in bitcoin client when unable to get block count (#809) 2021-02-10 01:41:20 -08:00
Jonathan Zernik
37fdcd9a92
Rename block interval config (#808) 2021-02-09 08:56:18 -08:00
Jonathan Zernik
85c2bcdfbc
Rename bitcoin client (#807)
* Rename bitcoin client

* Remove log line from bitcoin client
2021-02-09 08:28:00 -08:00
Jonathan Zernik
ff1c1f7567
Remove pypi install from readme (#803) 2021-02-09 08:05:33 -08:00