Skip to content

Missing prev_txouts  #136

Description

@andreasgriffin

Description

Syncing a wallet from scratch with kyoto for incoming tx and running

wallet.calculate_fee(tx)

gives

bdkpython.bdk.CalculateFeeError.MissingTxOut: out_points=[<bdkpython.bdk.OutPoint object at 0x716388266390>, <bdkpython.bdk.OutPoint object at 0x716388264e00>]

Steps to reproduce

On Signet, pip install bdkpython==2.0.0. Sync the following wallet with kyoto:

descriptor = "wpkh([d61bc696/84'/1'/0']tpubDCZsFxoXd76ZFhGHa9FMCJ6jf9drQeqrWcYdpb18nXfsYe2YeTkvXVB6iT2AXz5E5sSWxf1G1W3Sf7ehsMdmXEHTL8ogWZYkLA3DY8FRr98/<0;1>/*)#76zcgt8z"
scan_type = bdk.ScanType.RECOVERY(from_height=0)

After successful sync running

wallet.calculate_fee(tx)

for the incoming tx https://mempool.space/signet/tx/7792eff9b668b1ffb47779c1cec7cb7c9e929d5b066e2eebfa37432121322ef8 causes this error.

Script to reproduce issue

Download minimal_cbf_sync.py and run

python minimal_cbf_sync.py --network signet    --recovery-height 269700 "wpkh([d61bc696/84'/1'/0']tpubDCZsFxoXd76ZFhGHa9FMCJ6jf9drQeqrWcYdpb18nXfsYe2YeTkvXVB6iT2AXz5E5sSWxf1G1W3Sf7ehsMdmXEHTL8ogWZYkLA3DY8FRr98/0/*)" "wpkh([d61bc696/84'/1'/0']tpubDCZsFxoXd76ZFhGHa9FMCJ6jf9drQeqrWcYdpb18nXfsYe2YeTkvXVB6iT2AXz5E5sSWxf1G1W3Sf7ehsMdmXEHTL8ogWZYkLA3DY8FRr98/1/*)"

Tagging @ValuedMammal @thunderbiscuit @rustaceanrob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions