fiatjaf
487f082eb2
take extra care on check_internal()
4 years ago
frennkie
a8e1aa3154
Consider port number on lnurlp URL
fix #86
4 years ago
Arc
afb2cc4339
Update .env.example
4 years ago
Arc
6b94abcfb9
Moved install guide to more prominent position
4 years ago
supertestnet
bd48bdc04d
Update .env.example due to recent changes ( #91 )
The name of the flask app has changed and the word "all" has been eliminated as unnecessary because allowing anyone to use lnbits is the default.
4 years ago
fiatjaf
130beaf38a
fix undeclared ok error.
4 years ago
fiatjaf
ab6229806c
fix: column is called hash, not payment_hash.
4 years ago
Eneko Illarramendi
d62031b068
chore: let's just call it `flask_migrate`
I think it should stay, because it can come handy for some deployment methods.
4 years ago
Eneko Illarramendi
1bc5e144d3
refactor: clean up __init__ file following some Flask conventions
Flask extensions are loaded in a way that makes them easily reusable by blueprints.
In this commit we are also adding `environs` to manage .env and settings:
breaking changes!
- FLASK_APP=lnbits.app
- LNBITS_ALLOWED_USERS needs to be empty now to allow all users (NOT "all")
4 years ago
fiatjaf
ffa3c3f6a6
python -m lnbits
4 years ago
fiatjaf
b8de30423f
remove walrus operator because python3.7
4 years ago
fiatjaf
c965bca41d
migration tracking.
4 years ago
Eneko Illarramendi
f238b3d1ef
fix: TypedDict import
4 years ago
Eneko Illarramendi
6b33f150c6
fix: revert default python version to 3.7 in Pipfile, closes #85
But tests will be run on both 3.7 and 3.8 as we want to support >= 3.7
4 years ago
fiatjaf
8b7028d728
add VoidWallet and make it the default.
4 years ago
Eneko Illarramendi
23cfe0d417
chore: update github workflows
4 years ago
Eneko Illarramendi
a651f747ac
chore: remove `gunicorn` and `gevent` from minimum requirements
It is now up to the user to install these (or other) for production deployment.
More info: https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/#run-with-a-production-server
4 years ago
fiatjaf
dcd3f80974
fix: invoice.payee is None by default.
4 years ago
fiatjaf
6513908a8d
Merge pull request #81 from lnbits/internalpaymentsmegachanges
4 years ago
fiatjaf
753e9c5b15
make linting workflow reflect what is done locally (Makefile).
4 years ago
fiatjaf
dc3d96c6a8
fix many mypy complaints, specially on bolt11.py
4 years ago
fiatjaf
ce28db76c9
add a dialog with payment details for each payment.
for outgoing payments this needs a preimage to be good,
but we don't have it yet because we don't get it from
backends.
4 years ago
fiatjaf
197af922d0
use {"tag": ext} for extension-related payments.
4 years ago
fiatjaf
4447a48724
deleting expired invoices based on their actual expiry date.
also fixes a possible bug that could have caused pending outgoing
payments to be deleted and affecting the balance. probably never happened.
4 years ago
fiatjaf
d2650d6e2c
don't try to check payments that start with temp_ or internal_.
4 years ago
fiatjaf
b56877d470
make db.py context manager operate in a transaction.
4 years ago
fiatjaf
bf3c44b3c4
extra fields on apipayments + index payments by payment_hash
4 years ago
arcbtc
c96b22664e
internal payments.
5 years ago
Eneko Illarramendi
d4f957a5c8
chore: update js vendors
4 years ago
Eneko Illarramendi
0d0e00e699
chore: update Pipfile
4 years ago
fiatjaf
b4a6b45645
only check pending payments on "check_pending".
4 years ago
fiatjaf
fadddc995a
get_wallet_payments with more fine-grained, explicit filters.
4 years ago
fiatjaf
d09e624eb6
fix: wallet.balance computed property self-reference.
4 years ago
fiatjaf
5d523519c3
bring back code mysteriously deleted in 79d5befe0c
fixes https://github.com/lnbits/lnbits/issues/73
4 years ago
fiatjaf
68b0adfe66
fix: description_hash as an optional param to create_invoice.
fixes https://github.com/lnbits/lnbits/issues/74
4 years ago
fiatjaf
660d56d400
run black on everything.
4 years ago
fiatjaf
2cecaa229b
bolt11.py now supports everything.
4 years ago
fiatjaf
ac20e06dc3
fix: correct db.cursor() usage on lnurlp.
4 years ago
fiatjaf
79d5befe0c
mypy on Makefile and apply prettier.
4 years ago
fiatjaf
479760c5a5
Merge pull request #43 from fiatjaf/lnurlpayserver
description_hash support, spark backend and lnurlp extension.
4 years ago
fiatjaf
3ce1e72e10
lnurlp lnurl explanation slightly different from lnurlw.
4 years ago
fiatjaf
1e4f39954e
fix: spark create_invoice error case.
4 years ago
fiatjaf
01b19add79
format: prettier lnurlp files.
4 years ago
fiatjaf
96b80fb3fc
lnurlp: store description as memo.
4 years ago
fiatjaf
3645e0ac38
fix: lnpay invoices with description_hash.
4 years ago
fiatjaf
0c7284be31
description_hash fix.
4 years ago
fiatjaf
0de08dda0b
add spark backend and fix c-lightning.
4 years ago
fiatjaf
a79ec8f4a4
lnurlp extension.
4 years ago
arcbtc
6cf488ea4f
Fixed lnurlw bugs
5 years ago
Eneko Illarramendi
e01de0eae5
chore: update requirements (but lock `gevents`)
`gevents` has been locked to avoid myNode installation problems.
5 years ago