Thursday, October 3, 2024

bitcoin core – Load PSBT error: Unable to decode PSBT

  1. I check PSBT in my pockets as we speak, create a transaction in Bitcoin Core, click on “ship” and “create unsigned”, then “Load PSBT from …” from menu, error exhibits:
Unable to decode PSBT 
Unsigned tx doesn't have empty scriptSigs and scriptWitnesses.: unspecified iostream_category error

I’ve no excellent what occurred. However similar process works fantastic in one other pockets of testnet. Each wallets will not be watch solely.

I discovered the supply code, any clarification is welcome:

                case PSBT_GLOBAL_UNSIGNED_TX:
                {
                    if (!key_lookup.emplace(key).second) {
                        throw std::ios_base::failure("Duplicate Key, unsigned tx already supplied");
                    } else if (key.dimension() != 1) {
                        throw std::ios_base::failure("World unsigned tx secret is a couple of byte kind");
                    }
                    CMutableTransaction mtx;
                    // Set the stream to serialize with non-witness since this could at all times be non-witness
                    UnserializeFromVector(s, TX_NO_WITNESS(mtx));
                    tx = std::transfer(mtx);
                    // Be sure that all scriptSigs and scriptWitnesses are empty
                    for (const CTxIn& txin : tx->vin) {
                        if (!txin.scriptSig.empty() || !txin.scriptWitness.IsNull()) {
                            **throw std::ios_base::failure("Unsigned tx doesn't have empty scriptSigs and scriptWitnesses.");**
                        }
                    }
                    break;
                }
  1. BTY, what is the easiest approach to check and confirm that I’m the proprietor of the fund besides sending an actual coin?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles