Commit Graph

3040 Commits

Author SHA1 Message Date
Vlad Stan
fb60673f67 feat: add ping command 2022-08-18 08:38:40 +03:00
dni ⚡
31a51f3cbc
add debug logging into tests (#895)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-17 15:57:56 +02:00
dni ⚡
d649e6a5c0
fix migrations, add documentation, hopefully fix workflow (#899)
* fix migrations, add documentation, hopefully fix workflow

* renaming to test-migration and add migration

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-17 15:42:01 +02:00
calle
24de8f6611
isort api.py (#898) 2022-08-17 14:27:52 +02:00
callebtc
65f27afd76 upadte systemd docs to poetry 2022-08-17 14:25:19 +02:00
calle
790f0efda7
Chore/unhashed description expressive error (#894)
* dont assume field

* expressive error for desciprion_hash and unhashed_description in format that isnt hex
2022-08-17 00:59:11 +02:00
Tiago Vasconcelos
7bba742faf
delete tips first... (#888) 2022-08-16 17:01:53 +02:00
dni ⚡
3dc00f67db
add pending column to CSV export on wallet page, issue #887 (#889)
* add pending, isPaid columns to CSV export on wallet page, issue #887

* prettier formatting

* remove isPaid from csv export

* added comment

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:32 +02:00
dni ⚡
ee4049ec1f
fix javascript issue, Fixes: #890 (#891)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:20 +02:00
dni ⚡
88ec440ea1
another testcase the fails similar to #847 (#892)
* another testcase the fails similar to #847

* proper fix

* revert to statuscode 401 and code improvements @calle

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-16 17:01:05 +02:00
Vlad Stan
f73f5a90c9 feat: only allow DH key exchange in the first 60 seconds 2022-08-16 14:08:04 +03:00
Vlad Stan
7c796f428a feat: allow COMMAND_PASSWORD_CLEAR in clear text 2022-08-16 12:16:09 +03:00
Joe
8956bdc954
Update installation.md (#884)
* Update installation.md

I needed to run this additional command to install python3.9-specific distutils. Without this, installation of several poetry dependencies (idna, pyparsing, sniffio) failed with message: 
ModuleNotFoundError: No module named 'distutils.cmd'

* Update installation.md
2022-08-15 16:22:20 +02:00
Lee Salminen
6aef9bfd45
Add NFC support to TPOS Extension (#856)
* WIP

* styling

* WIP

* WIP

* WIP

* Clean up for PR

* isort

* hold abortContoller for a while longer
2022-08-15 15:37:10 +02:00
Vlad Stan
32bb59255d feat: restore takes both the password and the seed as args 2022-08-15 15:59:49 +03:00
Vlad Stan
01d2db5a1b fix: bad command for restore 2022-08-15 15:43:35 +03:00
Lee Salminen
89130bd1fb once over on README 2022-08-14 18:34:19 -06:00
calle
4ac73f1a79
Lnurlp/url_validation_fix (#883)
* dont assume field

* fix https check
2022-08-15 00:20:57 +02:00
Gene Takavic
0e5f6ac586 adapt to bolt-nfc-android-app 2022-08-14 23:52:55 +02:00
calle
befe96257d
Fix/header_check_fix_2 (#880)
* dont assume field

* check better
2022-08-14 23:17:53 +02:00
calle
9bc99f796b
Fix/header_lookup_none (#879)
* dont assume field

* fix header lookup
2022-08-14 22:59:02 +02:00
calle
0f760bf39e
Lnurlp: use unhashed_description instead of description_hash (#878)
* dont assume field

* pass unhashed_description instead of description_hash for LNURL stuff

* more
2022-08-14 21:59:36 +02:00
Lee Salminen
3df66334db
clean up mobile layout per @callebtc (#874) 2022-08-14 19:41:26 +02:00
calle
c85be8dd22
dont assume field (#875) 2022-08-14 19:40:46 +02:00
Lee Salminen
fc427e7ccc
resolves issue #872 & #815, error deleting lnurlp/lnurlw links (#877)
* resolves issue #872, error deleting lnurlp link

* apply the same fix for lnurlw in issue #815
2022-08-14 19:38:26 +02:00
Lee Salminen
293e5394a8 run make format 2022-08-14 10:58:35 -06:00
Lee Salminen
4c758f4665 re-create @iWarpBTC commit ID a9df953990 2022-08-14 10:52:58 -06:00
iWarpBTC
f8d4c39b1e basic readme 2022-08-14 10:52:58 -06:00
iWarpBTC
c04b0a1905 Update index.html
prettier
2022-08-14 10:52:58 -06:00
Gene Takavic
5b8d317441 black & isort 2022-08-14 10:52:58 -06:00
iWarpBTC
5af49e3801 comments and hints 2022-08-14 10:52:58 -06:00
iWarpBTC
2f497ac0ee retreiving hits 2022-08-14 10:52:58 -06:00
iWarpBTC
3cb62d1899 recording card tapping 2022-08-14 10:52:58 -06:00
iWarpBTC
4fab2d3101 new extension
just proof of concept
2022-08-14 10:52:58 -06:00
Lee Salminen
c32ff1de59
New Extension: Invoicing (#733)
* initial commit

* add docs

* black & prettier

* mobile styles

* add print view

* prettier

* make format

* initial migrations un-messed

* make migrations work for sqlite

* add invoices table

* clean migrations

* add migration to conv

* fix card size

* hopefully fix test migration

* add missing status

* timestamp

* init testing

* remove draft invoice by default on create

* what should i test

* make format

* raise if not invoice

* new test and renaming

* fix issue reported by @talvasconcelos which prevented users from setting status on creation

* readme

* run black

* trying to make tests work

* make it work again

* send paid amount

* partial pay flow

* good coding

* can't get these test to work

* clean up and commenting

* make format

* validation for 2 decimals

Co-authored-by: ben <ben@arc.wales>
Co-authored-by: Tiago vasconcelos <talvasconcelos@gmail.com>
2022-08-13 21:37:44 +02:00
Tiago Vasconcelos
197ff7d054
Core: reserve fee as an .env variable (#631)
* reserve fee as an .env variable

* fixed bad import

* Update .env.example

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/core/services.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/core/services.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* Update lnbits/settings.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

* variable consistent names

* fix services.py variable names

* percent default fix

* Update lnbits/settings.py

int to float

* Update lnbits/settings.py

int to float

* Update .env.example

int to float

* make format

* fixed failing bleskomat test, expecting 2000 msats fee

* Update tests/extensions/bleskomat/test_lnurl_api.py

revert to 2 sat

* Update .env.example

* Update lnbits/settings.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 20:19:08 +02:00
dni ⚡
d989441587
added test for issue #847 and fixed it! (#848)
* added test for empty post data, for issue #847

* black

* fixed the failing testcase

* Update lnbits/decorators.py

Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:47:29 +02:00
dni ⚡
034813a1ab
stuck in retrying backend loop, fix issue #652 (#862)
* maybe solution to issue #652

* formatting, when precommit merge?

* Update lnbits/app.py

* Update lnbits/app.py

Co-authored-by: dni <dni.khr@gmail.com>
Co-authored-by: calle <93376500+callebtc@users.noreply.github.com>
2022-08-13 14:46:47 +02:00
calle
28661903b6
return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing (#869)
* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing

* fix regtest (#867)

Co-authored-by: dni <dni.khr@gmail.com>

* return http error UNAUTHORIZED instead of BAD_REQUEST if key is missing

Co-authored-by: dni  <office@dnilabs.com>
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:44 +02:00
dni ⚡
32a09f7359
add apache2 reverse proxy documentation (#868)
* add apache2 reverse proxy documentation

* add certbot

Co-authored-by: dni <dni.khr@gmail.com>
2022-08-13 14:41:23 +02:00
calle
e5d8c500d2
Wallets/unhashed_description (#870)
* new argument: unhashed_description

* accept in api

* set unhashed_description for memo case

* bolt11.py: dont be like CLN, accept the hash

* send hash to lnd in b64

* fix cln

* skip descr_hash for cln

* skip

* format
2022-08-13 14:29:04 +02:00
dni ⚡
3457ff101e
fix regtest (#867)
Co-authored-by: dni <dni.khr@gmail.com>
2022-08-12 21:05:13 +02:00
Vlad Stan
a32754610a feat: use random IV for each request 2022-08-12 16:52:55 +03:00
Vlad Stan
19dfef6044 fix: help command 2022-08-12 15:55:19 +03:00
Vlad Stan
1c03b28b77 feat: add more logging for HWW 2022-08-12 15:29:48 +03:00
Vlad Stan
58ab68b876 feat: use aes lib foe encryption 2022-08-12 15:12:03 +03:00
Vlad Stan
e6c8865eca feat: decrypt data from HWW 2022-08-12 14:12:40 +03:00
Vlad Stan
174cc28fe1 feat: special log for hww 2022-08-12 12:07:41 +03:00
Vlad Stan
3f71df7829 feat: use external aes lib 2022-08-12 10:25:54 +03:00
Arc
d1e1cbed41
Merge pull request #863 from motorina0/onchain_review_fixes
onchain extension - review & fix
2022-08-11 13:24:17 +01:00