Commit Graph

333 Commits

Author SHA1 Message Date
Andrew Camilleri
e183714475
Add Tor Http Client Factory (#1445)
* WIP: Add Tor Http Client Factory

This PR adds a Tor Http Client Factory so that we can do HTTP requests over socks5( which we usually use tor's socks5).
Using it for payjoin when possible.

Currently have an issue where a 503 is always returned.  Must be something wrong with my tor config or the socks proxy lib Im using

* fix

* remove external dependency

* make payjoin client use tor client if available

* fix docker test

* use tor client only if available and necessary

* remove bip 79 mention
2020-04-08 22:40:41 +09:00
Kukks
32938479ac WIP: Payjoin: P2SH support 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
42aead3c89
A replacement payment should have the same fee as the replaced one 2020-04-05 20:48:00 +09:00
nicolas.dorier
a348960041
Make CanChangeNetworkFeeMode more resilient 2020-04-05 20:00:28 +09:00
nicolas.dorier
c737a25234
Add logs to test CanChangeNetworkFeeMode 2020-04-05 18:54:12 +09:00
nicolas.dorier
a01b2e4a83
Small optimization for faster AddDerivationScheme 2020-04-05 18:35:29 +09:00
Nicolas Dorier
5f838db281
Merge pull request #1431 from Kukks/api/merge-multiple-swagger
Swagger Generator: Merge multiple documents
2020-04-05 17:36:04 +09:00
Kukks
76b919d887 make swagger test use live endpoint 2020-04-05 09:43:49 +02:00
Nicolas Dorier
963c69a0e0
Merge pull request #1321 from Kukks/bpu
BIP79
2020-04-05 12:10:55 +09:00
nicolas.dorier
fd026a9733
Refactor server-side 2020-04-05 12:02:36 +09:00
Kukks
49786f4195 add bitpay to blacklist 2020-03-31 11:13:22 +02:00
rockstardev
7b6eae6053 Fixing CheckNoDeadLink test now that btse blocks our call from circleci 2020-03-31 11:12:01 +02:00
nicolas.dorier
c906fd42df
Add bitflyer direct integration 2020-03-26 00:48:01 +09:00
Nicolas Dorier
e36338d903
Merge pull request #1403 from Kukks/basic-auth
Greenfield API: Basic Auth
2020-03-25 21:00:14 +09:00
Kukks
91924512e6 Fix Link checker test 2020-03-24 08:00:47 +01:00
Kukks
98a48cd0a5 fix swagger validation test 2020-03-20 17:37:39 +01:00
nicolas.dorier
318d826694
Rename Permissions.Can.. to Policies.Can.. 2020-03-20 13:41:47 +09:00
nicolas.dorier
29a807696b
Refactor permissions of GreenField 2020-03-19 23:43:51 +09:00
nicolas.dorier
e351e0c9ea
Remove dependency on NSwag 2020-03-18 20:08:09 +09:00
nicolas.dorier
c85fb3e89f
Remove ndax from test suite (crashing exchange) 2020-03-17 13:19:55 +09:00
nicolas.dorier
95f859b6db
Simplify RBF handling, and handle case of double spend happening outside of wallet (Fix #1375) 2020-03-11 21:05:12 +09:00
nicolas.dorier
6bf7ef0798
Revert "Simplify RBF handling, and handle case of double spend happening outside of wallet (Fix #1375)"
This reverts commit 42152050a3.
2020-03-11 20:57:19 +09:00
nicolas.dorier
42152050a3
Simplify RBF handling, and handle case of double spend happening outside of wallet (Fix #1375) 2020-03-11 20:46:37 +09:00
nicolas.dorier
e6acc19bcc
Add a test catching expirationTime bug (#1336) 2020-03-10 17:11:15 +09:00
Andrew Camilleri
d31bff7070
BPU Prep Work Part2 (#1340)
* BPU Prep Work Part2

* Adjust tests to use the hot wallet when registering deriv scheme
* Add amount to payment data view for onchain payments
* Make zone limits higher when in dev mode (for tests in next PR)
* Make IPaymentMethodDetails serialize/deserialize through payment type using the network
* Allow named settings through settings repo
* Refactor some extensions for next PR

* pr changes

* use json convert for now
2020-02-19 17:35:23 +09:00
Hans Looman
1a409a441d
Update POLIS related entries (#1313)
* Update Polis related info and services

* Fix Polis Rate Fetcher

* Fix Polis ratefetcher - Cryptopia is obsolete

* POLIS rate provider changes to comply with internal testing

* URL / pair alignment

* Add small doc to re-trigger testing
2020-02-13 14:44:31 +09:00
rockstardev
24664b60af Adding test ensuring that api errors are properly returned 2020-02-03 02:21:03 -06:00
nicolas.dorier
7e073fb7e1
Add test CanCreateSqlitedb 2020-01-19 22:10:05 +09:00
nicolas.dorier
53a60d1660
Add Direct Provider with bitfinex, okex and coinbasepro 2020-01-18 21:48:04 +09:00
nicolas.dorier
25b733ca7f
Remove knowledge of ExchangeName from BackgroundRateFetcher 2020-01-18 19:42:46 +09:00
nicolas.dorier
1bf680fdb9
Improve tests to not create new HttpClient every times 2020-01-18 19:23:40 +09:00
nicolas.dorier
a8ac01cd8b
Refactor rate handling to prevent error of exchange name 2020-01-17 18:11:05 +09:00
nicolas.dorier
90ec416125
Add exponential backoff for CoinGecko, pass the cancellationtoken around 2020-01-17 15:08:28 +09:00
nicolas.dorier
827b6085af
Do not hammer CoinGecko with tests 2020-01-17 14:56:05 +09:00
nicolas.dorier
6dffbbd93d
Remove CachedRateProvider 2020-01-17 14:42:02 +09:00
nicolas.dorier
7a0991d6b1
Remove CoinAverage integration (2) 2020-01-17 14:30:51 +09:00
nicolas.dorier
9410933e1c
Fix: Adding comment on wallet transactions causes 500 error (Close #1280) 2020-01-16 15:19:45 +09:00
Andrew Camilleri
36f980135f fix broken url (#1275)
* fix broken url

* fix test
2020-01-14 22:06:46 +09:00
nicolas.dorier
5dbdb4b399
Keep coinaverage compatibility, improve UX, hardcode feed provider supported exchanges 2020-01-13 23:37:01 +09:00
Kukks
58d9a48787
CoinGecko Rate Provider
The CoinGecko rate provider is similar to the bitcoin average one, in that you can ask it for a rate from its aggregated sourcing or you can get rates from specific exchanges. I've added support for both.
I haven't integrated it or replaced coinaverage just to see if we should use it as the default and switch everyone to it or what other action to take.
2020-01-13 20:20:00 +09:00
nicolas.dorier
bfcd90d8d1
Refactor test 2020-01-10 14:46:42 +09:00
nicolas.dorier
c99d26a55d
Fix test for clightning overpaying 2020-01-10 11:13:54 +09:00
Nicolas Dorier
d689222e04
Merge pull request #1234 from NicolasDorier/rates/limit
Do not preemptively fetch rates of all exchanges
2019-12-26 16:36:53 +09:00
nicolas.dorier
57985e78e5
Save the last update time instead of the next update time 2019-12-26 16:24:57 +09:00
nicolas.dorier
731341b749
Do not preemptively fetch rates of all exchanges 2019-12-26 14:54:26 +09:00
Nicolas Dorier
f12186e09f
The tests in btcpayserver should use only the services they use (#1233) 2019-12-24 18:11:21 +09:00
Andrew Camilleri
4d7480db15 Liquid & Liquid Assets Support (#1118) 2019-12-24 16:20:44 +09:00
nicolas.dorier
a73d2db02a
Fix tests 2019-12-19 16:36:04 +09:00
nicolas.dorier
c6bba9188b
Improve error message for CanUsePosApp 2019-11-13 15:56:58 +09:00