Set to version 2 by default
This commit is contained in:
parent
2b8e8001bc
commit
b28c96d228
4 changed files with 6 additions and 4 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -200,9 +200,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bip174": {
|
"bip174": {
|
||||||
"version": "0.0.11",
|
"version": "0.0.12",
|
||||||
"resolved": "https://registry.npmjs.org/bip174/-/bip174-0.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/bip174/-/bip174-0.0.12.tgz",
|
||||||
"integrity": "sha512-/WuRQOwgT0cGKDrNROOhOHpdtXyeuBJMqEgsBUdlCeFRLXIA8g5pHzbFmVm/v+OcYdenHfwzW/hOEf1xJOI27Q=="
|
"integrity": "sha512-rYVuFTSCROv8iI07BhEddap+iXiFz2aiYEUSQR8rqv7JKWbMO2QQqCJMvr2E0df8wu5ySysd/CupIP4eG4ukqQ=="
|
||||||
},
|
},
|
||||||
"bip32": {
|
"bip32": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "10.12.18",
|
"@types/node": "10.12.18",
|
||||||
"bech32": "^1.1.2",
|
"bech32": "^1.1.2",
|
||||||
"bip174": "0.0.11",
|
"bip174": "0.0.12",
|
||||||
"bip32": "^2.0.3",
|
"bip32": "^2.0.3",
|
||||||
"bip66": "^1.1.0",
|
"bip66": "^1.1.0",
|
||||||
"bitcoin-ops": "^1.4.0",
|
"bitcoin-ops": "^1.4.0",
|
||||||
|
|
|
@ -12,6 +12,7 @@ const varuint = require('varuint-bitcoin');
|
||||||
class Psbt extends bip174_1.Psbt {
|
class Psbt extends bip174_1.Psbt {
|
||||||
constructor(opts = {}) {
|
constructor(opts = {}) {
|
||||||
super();
|
super();
|
||||||
|
this.setVersion(2);
|
||||||
this.opts = Object.assign({}, DEFAULT_OPTS, opts);
|
this.opts = Object.assign({}, DEFAULT_OPTS, opts);
|
||||||
// // TODO: figure out a way to use a Transaction Object instead of a Buffer
|
// // TODO: figure out a way to use a Transaction Object instead of a Buffer
|
||||||
// // TODO: Caching, since .toBuffer() calls every time we get is lame.
|
// // TODO: Caching, since .toBuffer() calls every time we get is lame.
|
||||||
|
|
|
@ -19,6 +19,7 @@ export class Psbt extends PsbtBase {
|
||||||
private opts: PsbtOpts;
|
private opts: PsbtOpts;
|
||||||
constructor(opts: PsbtOptsOptional = {}) {
|
constructor(opts: PsbtOptsOptional = {}) {
|
||||||
super();
|
super();
|
||||||
|
this.setVersion(2);
|
||||||
this.opts = Object.assign({}, DEFAULT_OPTS, opts);
|
this.opts = Object.assign({}, DEFAULT_OPTS, opts);
|
||||||
// // TODO: figure out a way to use a Transaction Object instead of a Buffer
|
// // TODO: figure out a way to use a Transaction Object instead of a Buffer
|
||||||
// // TODO: Caching, since .toBuffer() calls every time we get is lame.
|
// // TODO: Caching, since .toBuffer() calls every time we get is lame.
|
||||||
|
|
Loading…
Reference in a new issue