Commit graph

839 commits

Author SHA1 Message Date
Jonathan Zernik
80cebd8514
Rename db query properties to remove negations (#1719) 2021-10-24 16:35:00 -07:00
Jonathan Zernik
583d076394
Use payment hash as parameter for set received offer paid (#1718) 2021-10-24 16:19:23 -07:00
Jonathan Zernik
d3d48214c7
Rename property in squeak db for received offer invoice expired (#1717) 2021-10-23 18:59:31 -07:00
Jonathan Zernik
2bbadbd7de
Rename rpc config section (#1716) 2021-10-23 18:45:14 -07:00
Jonathan Zernik
6cbd7e0c7b
Rename configs in server section (#1713) 2021-10-23 18:00:17 -07:00
Jonathan Zernik
1d090f4283
Move external address config to server section (#1712) 2021-10-23 10:22:56 -07:00
Jonathan Zernik
2033f32227
Make received offer retention a config (#1710) 2021-10-23 10:03:48 -07:00
Jonathan Zernik
62edc9bf4c
Fix args for calling delete old received offers (#1709) 2021-10-23 09:57:09 -07:00
Jonathan Zernik
b2d5326d34
Delete received offers when out of configured retention from download time (#1708) 2021-10-23 09:34:21 -07:00
Jonathan Zernik
899455b613
Rename sent offer out of retention db query property (#1706) 2021-10-23 09:12:40 -07:00
Jonathan Zernik
cb0a5971ec
Add test for get latest settle index and clear settle indexes (#1704) 2021-10-23 08:51:23 -07:00
Jonathan Zernik
4c71be584a
Add test for set sent offer paid (#1698)
* Add test for set sent offer paid

* Add test for set sent offer not paid
2021-10-23 00:26:04 -07:00
Jonathan Zernik
bde1b162f8
Comment out delete sent offer method (#1694) 2021-10-22 22:40:57 -07:00
Jonathan Zernik
dc6cef8cff
Add test for get sent offer by squeak and peer (#1693) 2021-10-22 22:20:10 -07:00
Jonathan Zernik
ca7296849b
Remove squeak not liked db query property (#1687) 2021-10-22 18:07:00 -07:00
Jonathan Zernik
ab4984ede4
Remove unused db query property for received offer does not exist (#1684) 2021-10-22 17:44:24 -07:00
Jonathan Zernik
2016f057d3
Rename received_offer is expired property of db class (#1682) 2021-10-22 17:42:54 -07:00
Jonathan Zernik
0173cc90a4
Remove db property for profile has no private key (#1680) 2021-10-22 17:27:12 -07:00
Jonathan Zernik
3fc34c8965
Add test for set received offer paid db method (#1678) 2021-10-22 17:16:37 -07:00
Jonathan Zernik
e320c9b497
Comment out unused delete offer method of db (#1677) 2021-10-22 16:51:05 -07:00
Jonathan Zernik
6fa1a36fca
Remove db query property for squeak has no secret key (#1676) 2021-10-22 16:43:52 -07:00
Jonathan Zernik
0f65bb93e3
Use negation function of sqlalchemy for expired received offer condition (#1675) 2021-10-22 16:41:25 -07:00
Jonathan Zernik
7d6bb76f74
Don't delete offers for squeak on delete squeak method in controller (#1674) 2021-10-22 16:18:35 -07:00
Jonathan Zernik
704abeea24
Comment out get received offer by squeak and peer method (#1669) 2021-10-22 15:22:17 -07:00
Jonathan Zernik
1ea1db1d3d
Remove old commented methods in db class (#1661) 2021-10-20 13:29:56 -07:00
Jonathan Zernik
43f358adcc
Comment out unused db method (#1648) 2021-10-19 04:38:45 -07:00
Jonathan Zernik
bd56867e2f
Add doc for configuration (#1643)
* Added configs for node section to config doc

* Add bitcoin configs to config doc

* Add lnd configs to config doc

* Add tor configs to config doc

* Add db configs to config doc

* Add admin configs to config doc

* Add webadmin configs to config doc

* Add link to configuration doc in readme
2021-10-18 22:13:01 -07:00
Jonathan Zernik
3ffa122f4f
Add test for get num squeaks with address in block range db method (#1640) 2021-10-18 12:47:14 -07:00
Jonathan Zernik
258bd53f31
Add tests for lookup method of squeak db (#1638)
* Add tests for lookup method of squeak db

* Add test for lookup squeaks db method for unlocked only
2021-10-18 11:58:03 -07:00
Jonathan Zernik
c78f711f4e
Add method in squeak controller that deletes both expired received offers and expired sent offers (#1633) 2021-10-18 00:32:19 -07:00
Jonathan Zernik
07bf467692
Add docstring and test for get_hash function (#1631) 2021-10-18 00:16:08 -07:00
Jonathan Zernik
78d23615b3
Refactor update subscribed squeak worker (#1630)
* Refactor forward subscribed squeak method to squeak controller

* Refactor forward subscribed secret key method to squeak controller

* Remove instance variable network manager from new squeak and new secret key subscription classes

* Remove old comments from subscription workers
2021-10-18 00:05:47 -07:00
Jonathan Zernik
c53fe89096
Move tor configs to separate section (#1629)
* Move tor configs to separate section

* Update readme with new tor config section
2021-10-17 23:11:22 -07:00
Jonathan Zernik
d1477b0b99
Rename admin webapp user module (#1628) 2021-10-17 22:33:36 -07:00
Jonathan Zernik
fd6ad232e1
Add function to get private key from profile (#1619) 2021-10-16 19:35:24 -07:00
Jonathan Zernik
0e85b37f02
Add functions for optional types to msgs (#1618)
* Add functions for convert some optional types to msgs

* Add functions for convert optional squeak entry to msg

* Add function for convert optional peer to msg

* Add function for convert optional received offer to msg

* Add function for convert optional sent payment to msg

* Add function for convert optional squeak to detail msg

* Add function for convert optional connected peer to msg

* Use function for convert optional connected peer to msg in handler
2021-10-16 18:59:56 -07:00
Jonathan Zernik
b374aab2d9
Add init with retries method to squeak db (#1616)
* Add init with retries method to squeak db

* Use db init_with_retries method in squeak node class

* Add unit test for db init with retries method

* Raise exception with message on init with retry fail
2021-10-16 02:04:28 -07:00
Jonathan Zernik
661c85bd70
Ignore get_stub method of lnd client in code coverage (#1611) 2021-10-15 21:17:22 -07:00
Jonathan Zernik
2daec01ed1
Add test for msg to received payment (#1608)
* Add test for msg to received payment

* Rename param in message to functions

* Rename param in message to sent payment function
2021-10-15 19:59:15 -07:00
Jonathan Zernik
16e9db2376
Add test for msg to sent payment (#1606)
* Add test for msg to sent payment

* Remove redundant assertion about sent payment secret key
2021-10-15 19:37:58 -07:00
Jonathan Zernik
c8ac284749
Add test for msg to squeak entry (#1605) 2021-10-15 18:26:58 -07:00
Jonathan Zernik
636cd4155a
Add test for sent payment to msg (#1603) 2021-10-15 17:49:59 -07:00
Jonathan Zernik
8e0dae6507
Add test for received payment to msg (#1602)
* Add test for received payment to msg

* Rename received payment to msg function
2021-10-15 17:35:37 -07:00
Jonathan Zernik
95f54f01e3
Add test for get subscribed invoices (#1595)
* Add struct to represent subscribe invoices result

* Add return type for subscribe invoices method

* Added test for subscribe invoices method of lnd lightning client
2021-10-14 22:03:37 -07:00
Jonathan Zernik
95feeb3cbe
Add test for sent offer to msg (#1594) 2021-10-14 20:16:22 -07:00
Jonathan Zernik
d351613880
Add tests for squeak entry to message and profile to message (#1593)
* Add tests for squeak entry to message and profile to message

* Move fixtures for admin module to separate conftest

* Add test for peer to msg

* Use global fixture for peer_address in squeak core test

* Move common fixtures to global conftest

* Add fixture for received offer

* Add unit test for received offer to msg

* Add fixture for sent offer

* Rename received offer to msg function
2021-10-14 19:57:48 -07:00
yzernik
c3088ac9ec Release version 0.1.161 2021-10-12 21:44:22 -07:00
Jonathan Zernik
c48450598b
Add check for payment point in unpack offer (#1577)
* Add check for payment point in unpack offer

* Update TODO comment for enable checking payment point
2021-10-12 14:28:18 -07:00
Jonathan Zernik
98bd5f9eb9
Use logger.exception in app.py when request fails (#1570) 2021-10-12 01:38:43 -07:00
Jonathan Zernik
4ec1f28712
Don't raise exception on failure in peer server accept (#1572) 2021-10-12 01:22:10 -07:00