Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Defer extracting the script until we're sure we'll use it
We were extracting the output script for all outputs, and discarding them immediately again if they were not P2WSH outputs which are the ones of interest to us. This patch move the extraction until after we have determined it is useful, and so we should save a couple thousand `tal()` and `tal_free()` calls. Changelog-Changed: lightningd: Speed up blocksync by not parsing unused parts of the transactions
- Loading branch information