Commit graph

732 commits

Author SHA1 Message Date
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
Jonathan Zernik
d46520dd93
Check block range and address without whitelist (#801)
* Check for followed addresses in peer connection download

* Remove whitelist from controller class

* Delete whitelist class
2021-02-09 07:48:30 -08:00
Jonathan Zernik
67404fdb54
Check block range of downloaded squeak (#799) 2021-02-09 05:22:24 -08:00
Jonathan Zernik
a36b1869b7
Add sync timeout (#797)
* Add timeout to peer client

* Fix timeout in peer client

* Make sync timeout configurable

* Remove sleep for testing from admin handler

* Remove sync timeout config override from itest
2021-02-09 04:52:57 -08:00
yzernik
4cf97bf2e0 Release version 0.1.35 2021-02-09 02:25:08 -08:00
yzernik
abbd25438d Release version 0.1.33 2021-02-09 01:57:41 -08:00
Jonathan Zernik
5e88cad3e2
Use block range structure (#795)
* Use block range from controller for handle lookup download response

* Use block range in peer controller

* Remove unused get best block height method

* Check uploads for valid block range
2021-02-09 01:52:53 -08:00
Jonathan Zernik
5b5677ac02
Update static build for foreground profile image (#791) 2021-02-06 02:23:15 -08:00
Jonathan Zernik
3af03ad37e
Show profile image in foreground (#790) 2021-02-06 01:53:39 -08:00
Jonathan Zernik
c8072a0c25
Tear down itest fixtures after yield (#789) 2021-02-06 01:40:25 -08:00
Jonathan Zernik
387aa13893
Use autoincrement for primary keys (#788)
* Change db model to use bigint with autoincrement

* Add constraint on host and port in peer table

* Use autoincrement in database model
2021-02-06 01:24:31 -08:00
yzernik
aaf6ae975d Revert changes to use natural primary keys 2021-02-04 03:15:02 -08:00
Jonathan Zernik
254c348882
Update static build for use peer hash primary key (#785) 2021-02-04 00:17:50 -08:00
Jonathan Zernik
64cf97dfe9
Try changing peer primary key to hash, not done (#782)
* Try changing peer primary key to hash, not done

* Got backend working with peer hash as primary key

* Got frontend working with peer hash as primary key for peer
2021-02-04 00:09:58 -08:00
yzernik
ebd61823aa Revert back the revert to use address for profile primary key 2021-02-03 20:53:00 -08:00
Jonathan Zernik
5678fddf18
Use sqlite autoincrement for primary keys (#784)
* Use explicit autoincrement for sqlite primary keys

* Add migration to use sqlite_autoincrement
2021-02-03 03:06:31 -08:00
Jonathan Zernik
855d357ca4
Revert to using integer primary key for profile table (#783) 2021-02-03 01:42:47 -08:00
Jonathan Zernik
55a05bc78d
Update static build for using address as primary key for profile (#780) 2021-02-02 20:58:33 -08:00
Jonathan Zernik
7c5734bd86
Use addresss for profile primary key (#779)
* Use address as primary key for profile table

* Delete old sql query comments

* Update frontend to use address for profile primary key

* Fix profiles page data table goto action

* Fix usage of get profile by address in remaining frontend
2021-02-02 20:54:11 -08:00
Jonathan Zernik
f4ddecf93f
Fix handle null ids in admin message conversion (#778) 2021-02-02 17:05:03 -08:00
Jonathan Zernik
990c8cae61
Update static build for refactored navigation (#777) 2021-02-01 02:42:25 -08:00
Jonathan Zernik
0022860e7f
Refactor navigation functions (#776)
* Refactor navigation functions out of offer detail component

* Remove old commentes

* Fix go to lightning node from offer detail

* Refactor more navigation functions

* Refactor goto function out of create contact profile

* Refactor goto out of create peer dialog

* Refactor goto out of create signing dialog

* Refactor goto out of delete squeak dialog

* Refactor goto out of import signing profile dialog

* Refactor goto out of lightning peer list dialog

* Refactor goto out of make squeak dialog

* Refactor goto out of open channel dialog

* Refactor goto out of pending open channel component

* Refactor goto out of pending received payment component

* Refactor goto out of send bitcoin dialog

* Refactor goto out of sent offer component

* Refactor goto out of sent payment component

* Refactor goto out of squeak detail component

* Refactor goto out of profile detail component

* Refactor goto out of squeak thread item component

* Refactor goto out of payments page

* Refactor goto out of peers page

* Refactor goto out of profile page

* Refactor goto out of squeak page

* Refactor goto out of squeak address page

* Refactor goto out of timeline page

* Refactor reload out of buy dialog

* Refactor reload out of delete peer dialog

* Refactor reload out of delete profile dialog

* Refactor reload out of delete squeak dialog

* Refactor reload out of header

* Refactor reload out of squeak detail component

* Refactor goto out of timeline avatar component

* Refactor reload out of upload image dialog

* Refactor reload out of channel page

* Refactor reload out of lightning node page

* Refactor goto out of profiles page
2021-02-01 02:39:00 -08:00
Jonathan Zernik
7a6a9477ee
Use default name when empty (#774)
* Disallow empty name for contact profile

* Disallow empty name for signing profile

* Disallow empty name for peer
2021-01-31 23:34:42 -08:00
Jonathan Zernik
9312e5f23b
Handle missing peer for receieved offer sent payment (#773)
* Add has peer field to rpc messages with optional peer

* Handle possible missing nested peer in sent payment

* Fix showing offer and payment with no nested peer

* Update static build
2021-01-31 02:59:26 -08:00
Jonathan Zernik
919738fdce
Use nested peer msg in sent payments msg (#770)
* Use nested peer msg in sent payments msg

* Use nested peer msg in sent payment in frontend

* Update static build for nested peer msg in sent paymen
2021-01-30 23:54:23 -08:00
Jonathan Zernik
235dacab93
Use more type hints admin messages (#769)
* Use type hint for offer rpc message

* Add more type hints for admin messages

* Remove null check for admin message functions
2021-01-30 23:21:46 -08:00
Jonathan Zernik
defc7f5935
Use type hints for squeak display entry function (#768)
* Use type hint for squeak entry to message function

* Use type hint for squeak profile to msg function

* Rename messages module in admin
2021-01-30 22:25:29 -08:00
Jonathan Zernik
a07e73faa4
Use nested profile msg in squeak display msg (#767)
* Use nested squeak profile msg inside squeak display entry in rpc proto

* Include author address in squeak display entry msg

* Use nested squeak profile in squeak display message in frontend

* Update static build with nested squeak profile in squeak display msg
2021-01-30 21:29:57 -08:00
Jonathan Zernik
f6cd2bc7db
Return core types from peer client (#765)
* Create message module with util functions for peer protocol

* Use message util functions in rpc server servicer
2021-01-30 19:56:01 -08:00
Jonathan Zernik
12deeeaaf6
Delete old itest files (#760) 2021-01-30 06:09:02 -08:00
yzernik
f146e6baf8 Release version 0.1.33 2021-01-30 03:42:54 -08:00
Jonathan Zernik
3ff36cf3e3
Remove old log line from peer client (#755) 2021-01-30 03:29:48 -08:00
Jonathan Zernik
befe8db859
Fix graceful shutdown (#754)
* Refactored all components from main into squeaknode class

* Handle squeaknode initialization in constructor

* Got graceful shutdown working

* Use werkzeug for single threaded web server

* Fix import of werkzeug server

* Remove old log line
2021-01-30 03:17:15 -08:00
yzernik
a7a9ef97d9 Release version 0.1.32 2021-01-29 22:04:18 -08:00