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>
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>
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>