Commit Graph

267 Commits

Author SHA1 Message Date
Kukks
26aac6c45d Do not crash UI and background services after switching to BItcoin Only when you have altcoin payments 2020-08-09 16:17:16 +02:00
rockstardev
1b3e40fd70 Fixing typo 2020-08-03 03:17:04 -05:00
Nicolas Dorier
3ce16dc9a3
Merge pull request #1782 from xpayserver/btc-only
Add Bitcoin Only Build
2020-07-29 21:58:28 +09:00
nicolas.dorier
02998fff49
Add Altcoins-Release and Altcoins-Debug configurations 2020-07-29 18:55:28 +09:00
Kukks
e33200058d Generate Payment link from PaymentType 2020-07-29 09:31:47 +02:00
XPayServer
92ae1109d0 Add Bitcoin Only Build 2020-07-28 22:48:51 +02:00
rockstardev
f88c02cccd Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
rockstardev
b6c7af32de Cleaning up bom from cs files 2020-06-28 21:44:35 -05:00
nicolas.dorier
51514252b6
Run dotnet format 2020-06-28 17:55:27 +09:00
nicolas.dorier
24a88fcfb5
Adapt payjoin for BIP78 2020-06-22 13:57:42 +09:00
rockstardev
b9ef5af5d7 Fixing variable reference
Who'll save Emperor if not me
2020-06-06 23:52:21 -05:00
nicolas.dorier
56283df05a
Can only sign with NBX if imported with NBX 2020-06-07 09:38:29 +09:00
nicolas.dorier
9503e07dc8
Adapt PJ implementation to latest BIP 2020-05-28 13:35:48 +09:00
nicolas.dorier
9e9b5945fe
Ensure the payjoin can generate a high R signature if the payer is sending it 2020-05-25 06:47:43 +09:00
Andrew Camilleri
79b034b505
GreenField: Add properties to Store API (#1573)
* GreenField: Add properties to Store API

* Update StoreBaseData.cs

* fix api

* fix swagger
2020-05-24 04:13:18 +09:00
rockstardev
ca3acdacdc Setting PriveRoute hints when creating lightning invoices 2020-05-19 16:47:26 -05:00
nicolas.dorier
b96e668dfd
Sync payjoin receiver implementation to the bip 2020-05-19 20:57:04 +09:00
nicolas.dorier
de3753d04e
Rename payjoin optional parameters, implement sender minFeeRate 2020-05-19 20:57:03 +09:00
Nicolas Dorier
8d1ff01ee8
Adapt payjoin implementation to the BIP (#1569) 2020-05-17 05:07:24 +09:00
nicolas.dorier
b0f820e95a
Implement noadjustfee, feebumpindex and v parameters for payjoin 2020-05-09 21:22:00 +09:00
nicolas.dorier
da588380ed
Remove httpCode from error message 2020-05-09 19:33:48 +09:00
nicolas.dorier
f3b2b350ce
Fix build 2020-05-05 07:06:32 +09:00
nicolas.dorier
dad2642fa7
Make sure we match the user's sequence 2020-05-05 04:45:10 +09:00
nicolas.dorier
519f4af867
Bump pj original tx broadcast timeout 2020-04-29 00:23:51 +09:00
Andrew Camilleri
b31fb1a269
Auto label utxos based on invoice and payjoin (#1499)
* Auto label utxos based on invoice and payjoin

This PR introduces automatic labelling to transactions.
* If it is an incoming tx to an invoice, it will tag it as such.
* If it was a payjoin tx , it will tag it as such.
* If a transaction's inputs were exposed to a payjoin sender, we tag it as such.

* wip

* wip

* support in coinselection

* remove ugly hack

* support wallet transactions page

* remove messy loop

* better label template helpers

* add tests and susbcribe to event

* simplify data

* fix test

* fix label  + color

* fix remove label

* renove useless call

* add toString

* fix potential crash by txid

* trim json keyword in manual label

* format file
2020-04-28 15:06:28 +09:00
Andrew Camilleri
3801eeec43
Payjoin: Better UIH1 & UIH2 based selection (#1473)
* Try to make SelectUTXO care about all inputs and outputs

* wip

* wip

* Add test and fix seelctor

* remove space

* review changes

* revert back to index check
2020-04-28 01:28:21 +09:00
Andrew Camilleri
f410f7d4d1
Hide LN option for liquid Assets (#1512)
Was getting a bit crowded for stuff that isn't supported yet.
2020-04-27 18:15:38 +09:00
nicolas.dorier
47f16aadd5
Rely on NBitcoin to get the expected hash 2020-04-26 00:26:02 +09:00
Andrew Camilleri
f8b2b18c6e
Fix PJ (#1502)
* Fix P2SH-P2WPKH case for Payjoin (Fix #1500)

* fix p2sh issue

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2020-04-26 00:19:24 +09:00
Andrew Camilleri
5e6049bf3f
Payjoin fix: return psbt in same format it was received (#1496)
* Payjoin fix: return psbt in same format it was received

* fix formatting
2020-04-23 22:02:00 +09:00
Kukks
0077105a2d remove hacks 2020-04-18 08:29:07 +02:00
Kukks
51db617584 fixes 2020-04-18 08:09:49 +02:00
Kukks
514b695907 fix coin addition for p2sh 2020-04-18 08:09:49 +02:00
Kukks
dfe655393d Fix enable payjoin when p2sh 2020-04-16 17:23:29 +02:00
nicolas.dorier
7434163848
Persist offchain transactions 2020-04-16 14:36:50 +09:00
nicolas.dorier
c73c34dfaa
Persisting locked input and outpoints 2020-04-13 16:06:07 +09:00
nicolas.dorier
1d2540543b
Payjoin: Randomly round the payment output if it is one input tx 2020-04-13 13:34:23 +09:00
Andrew Camilleri
6274958409
Trust the payment method details for the payjoin enabled and make invoice logs consistent (#1450) 2020-04-10 16:00:41 +09:00
nicolas.dorier
0d821ff4db
Connection: close when using the internal proxy, fix gateway errors with connections in limbo 2020-04-09 18:49:30 +09:00
nicolas.dorier
6927d81175
Implement Http Tor proxy as a internal http proxy 2020-04-09 17:38:55 +09:00
nicolas.dorier
6602823067
Refactor the input type detection 2020-04-08 22:14:16 +09:00
Kukks
624e6e4744 adapt 2020-04-08 14:32:29 +02:00
Kukks
73b13c750d add P2sh support 2020-04-08 14:32:29 +02:00
Kukks
148b04e9ba allow changing the payjoin key easily later 2020-04-08 14:32:29 +02:00
nicolas.dorier
f4a47f5197
Deterministically sort the UTXOs to select 2020-04-08 13:46:11 +09:00
nicolas.dorier
9a9773853e
Fix bug in payjoin receiver where too much fee could be substracted from receiver 2020-04-07 20:04:08 +09:00
nicolas.dorier
9d2ab8b154
The payjoin receiver can inject a fake change 2020-04-07 18:14:31 +09:00
nicolas.dorier
ba2184e21a
Do not remove outputs in payjoin tx 2020-04-07 15:10:19 +09:00
nicolas.dorier
17a6b7d34f
Rename an error of pj to unsupported-input 2020-04-06 20:27:48 +09:00
nicolas.dorier
01a8c20ee8
Use better time precision for time in PaymentEntity 2020-04-05 23:57:43 +09:00