Commit Graph

13 Commits

Author SHA1 Message Date
Amperstrand
7c7b00a2d1 Add support for the default signet 2024-03-02 13:13:06 +01:00
Antoine Poinsot
c16c564c2c sauron: best effort detection of invalid raw blocks
It happens that Esplora will send us trimmed blocks (both my personal
instance and blockstream.info, fwiw). Try to detect it without parsing
the entire block on our side.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2021-09-25 16:06:26 +02:00
Antoine Poinsot
dc3f691ea1 sauron: fail early if we can't get block hash in getrawblock
It's a bit of duplication but is nonsensical to make a block request if
we couldn't get the block hash.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2021-09-25 16:06:26 +02:00
Michael Schmoock
35a2016c95 sauron: fix flake8 nits 2020-12-13 15:36:15 +01:00
Antoine Poinsot
550cd2522a sauron: handle testnet API unreliability
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-08-30 10:48:01 +02:00
Christian Decker
e33ff5e062 sauron: Add retry HTTP adapter to retry requests up to 10 times 2020-08-28 15:50:21 +02:00
Antoine Poinsot
bd1459ab4e sauron: add Tor proxy support
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-11 15:36:40 +02:00
Antoine Poinsot
810bedddc0 sauron: strictly exit when no endpoint
The exception might be excepted, and we would continue execution. This works better after https://github.com/ElementsProject/lightning/pull/3675 which will immediately make lightningd die if we exit

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-04-30 15:07:56 +02:00
darosior
714c28c369 sauron: cleanups: better errors, no assert, no useless json.loads 2020-04-03 16:29:07 +02:00
darosior
970a965430 sauron: use esplora to get raw blocks 2020-04-03 16:29:07 +02:00
darosior
8066e5f803 sauron: adapt feerate gathering to the new API. 2020-03-30 21:54:34 +02:00
darosior
e6cf4e13bd sauron: change gettxout to getutxout 2020-03-16 12:34:32 +01:00
darosior
d104baa672 Initial version of an esplora backend plugin 2020-03-16 12:34:32 +01:00