Skip to content

Commit

Permalink
feat(sdk-core): flag to do segwit override for bulk consolidations
Browse files Browse the repository at this point in the history
TICKET: BTC-721
  • Loading branch information
davidkaplanbitgo committed Dec 8, 2023
1 parent bdf723c commit 2bcdaf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/sdk-core/src/bitgo/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ export class Wallet implements IWallet {
assert(k.pub);
return k.pub;
}),
// Building PSBTs with the bulk flag does not include the previous transaction for non-segwit inputs.
// Manually override the signing and validating to not fail.
allowNonSegwitSigningWithoutPrevTx: !!params.bulk,
};

const txPrebuilds = Array.isArray(buildResponse) ? buildResponse : [buildResponse];
Expand Down

0 comments on commit 2bcdaf0

Please sign in to comment.