Commit Graph

13 Commits

Author SHA1 Message Date
nicolas.dorier
95644f8884 Fix tests 2020-04-09 19:44:16 +09:00
nicolas.dorier
6927d81175 Implement Http Tor proxy as a internal http proxy 2020-04-09 17:38:55 +09:00
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
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
b203d369fb Fix payjoin tests 2020-04-08 18:24:04 +09:00
nicolas.dorier
b1cc30d25d Fix sequence check on client 2020-04-08 17:51:22 +09:00
nicolas.dorier
72e64885be Fix sequence check on client 2020-04-08 17:42:50 +09:00
nicolas.dorier
ba2184e21a Do not remove outputs in payjoin tx 2020-04-07 15:10:19 +09:00
nicolas.dorier
9fc451c9ca Make stronger check on fee, let the merchant make bigger transaction if he pays the fee 2020-04-06 23:24:51 +09:00
nicolas.dorier
fd026a9733 Refactor server-side 2020-04-05 12:02:36 +09:00