Skip to content

Fix pre-segwit inputs with esplora#571

Merged
notmandatory merged 1 commit intobitcoindevkit:masterfrom
LLFourn:fix-570
Mar 17, 2022
Merged

Fix pre-segwit inputs with esplora#571
notmandatory merged 1 commit intobitcoindevkit:masterfrom
LLFourn:fix-570

Conversation

@LLFourn
Copy link
Copy Markdown
Collaborator

@LLFourn LLFourn commented Mar 15, 2022

Unexpectedly pre-segwit inputs have an empty JSON witness field in esplora.

Fixes #570

  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@cryptoquick
Copy link
Copy Markdown

cryptoquick commented Mar 16, 2022

It's funny how the fix was just one small change. Good test, and really good discovery about Esplora, thanks for doing that resarch. I only found it because I went pleb mode on a few faucets around the web, and I have a test that makes a transaction to myself using my personal testnet wallet in CI.

LGTM, Let's Get This Merged!

@notmandatory
Copy link
Copy Markdown
Member

This looks important enough to cherry-pick into the bdk 0.17.0 release which was due today but I will hold until we get this in.

Copy link
Copy Markdown
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 52bc63e

Copy link
Copy Markdown
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 52bc63e

Will merge and cherry-pick to the 0.17.0 release branch

@notmandatory notmandatory merged commit 1e9a684 into bitcoindevkit:master Mar 17, 2022
notmandatory added a commit to bitcoindevkit/rust-esplora-client that referenced this pull request Aug 2, 2022
e0d8dab Fix pre-segwit inputs with esplora (LLFourn)

Pull request description:

  Unexpectedly pre-segwit inputs have an empty JSON witness field in esplora.

  Fixes #570

  * [x] I've added tests to reproduce the issue which are now passing
  * [x] I'm linking the issue being fixed by this PR

ACKs for top commit:
  notmandatory:
    ACK e0d8dab
  afilini:
    ACK e0d8dab

Tree-SHA512: 1da82aeb2739111e1a516d94c79fe7d7c7879526a8cd780dcd63ff5ae9ccb1bed4eb20e5c575a45e37b6d1818d63ce6d3812e7b9ae34ebb02bc190a47b9750f8
chrono-raven6i90 added a commit to chrono-raven6i90/rust-esplora-client that referenced this pull request Oct 28, 2025
e0d8dab198813fdc2dd2f72f8495e8c43fc355e4 Fix pre-segwit inputs with esplora (LLFourn)

Pull request description:

  Unexpectedly pre-segwit inputs have an empty JSON witness field in esplora.

  Fixes #570

  * [x] I've added tests to reproduce the issue which are now passing
  * [x] I'm linking the issue being fixed by this PR

ACKs for top commit:
  notmandatory:
    ACK e0d8dab198813fdc2dd2f72f8495e8c43fc355e4
  afilini:
    ACK e0d8dab198813fdc2dd2f72f8495e8c43fc355e4

Tree-SHA512: 1da82aeb2739111e1a516d94c79fe7d7c7879526a8cd780dcd63ff5ae9ccb1bed4eb20e5c575a45e37b6d1818d63ce6d3812e7b9ae34ebb02bc190a47b9750f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing witness field when parsing response from Esplora

4 participants