Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

same input added twice to PSBT #14

Closed
nicbus opened this issue Jan 31, 2024 · 3 comments
Closed

same input added twice to PSBT #14

nicbus opened this issue Jan 31, 2024 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists
Milestone

Comments

@nicbus
Copy link
Contributor

nicbus commented Jan 31, 2024

Using this branch of rgb-sandbox and trying to execute a transfer that needs to spend two allocations from the same UTXO, the PSBT ends up containing the same input twice.

The unspents before the transfer come up as:

Height     Amount, ṩ    Outpoint
bcrt1prsq0tuu06w0r8sp28y0tayfryfa5r378r2ewgh5klmdfky245hps9x0wcd        &9/0
105        100000000    5be9f41b47f59fa5f7754cf43dc093b0677585438fdb22d0465ece403a23b2bb:0

bcrt1ptu25fk6a7plumpxmu9tea8uyhq2yr8e00ljpeerlrjs23davn20ss50hrf        &9/1
107        100000000    d6c7f57ff8bd18496af46c3166f5692a9f96e0fcda802c4c62b41febe34d96e7:1

The vin section of the PSBT contains:

    "vin": [
      {
        "txid": "5be9f41b47f59fa5f7754cf43dc093b0677585438fdb22d0465ece403a23b2bb",
        "vout": 0,
        "scriptSig": {
          "asm": "",
          "hex": ""
        },
        "sequence": 0
      },
      {
        "txid": "5be9f41b47f59fa5f7754cf43dc093b0677585438fdb22d0465ece403a23b2bb",
        "vout": 0,
        "scriptSig": {
          "asm": "",
          "hex": ""
        },
        "sequence": 0
      }
    ],

Trying to broadcast the transaction (via bitcoind sendrawtransaction) fails with the bad-txns-inputs-duplicate error.

This might be worth looking into together with #13, which is also about input selection.

@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Feb 27, 2024
@dr-orlovsky
Copy link
Member

No, this is unrelated to #13. It seems the issue is in RGB wallet and not in BP wallet. @nicbus can you please open the same issue and copy-paste this content into https://github.com/RGB-WG/rgb?

@dr-orlovsky
Copy link
Member

Actually we already have it there: RGB-WG/rgb#117

@dr-orlovsky dr-orlovsky added the duplicate This issue or pull request already exists label Feb 27, 2024
@dr-orlovsky dr-orlovsky self-assigned this Feb 27, 2024
@dr-orlovsky
Copy link
Member

Closing it here since it is referenced from RGB wallet issue

@dr-orlovsky dr-orlovsky closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
Status: Done
Development

No branches or pull requests

2 participants