use vout for outpoint reference

This commit is contained in:
Alex Bosworth 2023-10-30 11:52:59 -07:00
parent 66bdab8ccb
commit e170174847
No known key found for this signature in database
GPG key ID: E80D2F3F311FD87E
4 changed files with 450 additions and 504 deletions

View file

@ -1,5 +1,9 @@
# Versions
## 17.1.2
- `recover-p2pk`: Fix recovering funds not sent to index 0
## 17.1.1
- `open`: Add check for anchor channel support and `--skip-anchors-check` flag

View file

@ -141,7 +141,7 @@ module.exports = ({id, lnd, request, vout}, cbk) => {
const scriptPubKey = toOutputScript(createAddress.address, network);
tx.addInput(hexAsBuffer(id).reverse(), inputIndex, inputSequence);
tx.addInput(hexAsBuffer(id).reverse(), vout, inputSequence);
tx.addOutput(scriptPubKey, output.tokens);
// There is only one output on the sweep transaction

940
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -27,11 +27,11 @@
"bolt07": "1.8.4",
"cbor": "9.0.1",
"colorette": "2.0.20",
"crypto-js": "4.1.1",
"crypto-js": "4.2.0",
"csv-parse": "5.5.2",
"ecpair": "2.1.0",
"goldengate": "13.0.2",
"grammy": "1.19.1",
"grammy": "1.19.2",
"hot-formula-parser": "4.0.0",
"import-lazy": "4.0.0",
"ini": "4.1.1",
@ -54,7 +54,7 @@
"description": "Lightning balance CLI",
"devDependencies": {
"invoices": "3.0.0",
"ln-docker-daemons": "6.0.1",
"ln-docker-daemons": "6.0.2",
"mock-lnd": "1.4.4"
},
"engines": {
@ -82,5 +82,5 @@
"postpublish": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t alexbosworth/balanceofsatoshis -t alexbosworth/balanceofsatoshis:$npm_package_version --push .",
"test": "npx nyc@15.1.0 node --experimental-test-coverage --test test/arrays/*.js test/balances/*.js test/chain/*.js test/display/*.js test/encryption/*.js test/lnd/*.js test/network/*.js test/nodes/*.js test/peers/*.js test/responses/*.js test/routing/*.js test/services/*.js test/swaps/*.js test/tags/*.js test/telegram/*.js test/wallets/*.js"
},
"version": "17.1.1"
"version": "17.1.2"
}