Skip to content

Commit 5cf7fd6

Browse files
committed
multi: clean up after PRs
1 parent 92fdb15 commit 5cf7fd6

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

doc/chantools_pullanchor.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ chantools pullanchor \
2525
### Options
2626

2727
```
28-
--anchoraddr string the address of the anchor output (p2wsh output with 330 satoshis)
29-
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
30-
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
31-
--changeaddr string the change address to send the remaining funds to
32-
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)
33-
-h, --help help for pullanchor
34-
--rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed
35-
--sponsorinput string the input to use to sponsor the CPFP transaction; must be owned by the lnd node that owns the anchor output
28+
--anchoraddr stringArray the address of the anchor output (p2wsh or p2tr output with 330 satoshis) that should be pulled; can be specified multiple times per command to pull multiple anchors with a single transaction
29+
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
30+
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
31+
--changeaddr string the change address to send the remaining funds to
32+
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)
33+
-h, --help help for pullanchor
34+
--rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed
35+
--sponsorinput string the input to use to sponsor the CPFP transaction; must be owned by the lnd node that owns the anchor output
3636
```
3737

3838
### Options inherited from parent commands

doc/chantools_sweepremoteclosed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ funds can be swept after the force-close transaction was confirmed.
1313
Supported remote force-closed channel types are:
1414
- STATIC_REMOTE_KEY (a.k.a. tweakless channels)
1515
- ANCHOR (a.k.a. anchor output channels)
16+
- SIMPLE_TAPROOT (a.k.a. simple taproot channels)
1617

1718

1819
```

doc/chantools_sweeptimelockmanual.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and only the channel.backup file is available.
1212
To get the value for --remoterevbasepoint you must use the dumpbackup command,
1313
then look up the value for RemoteChanCfg -> RevocationBasePoint -> PubKey.
1414

15+
Alternatively you can directly use the --frombackup and --channelpoint flags to
16+
pull the required information from the given channel.backup file automatically.
17+
1518
To get the value for --timelockaddr you must look up the channel's funding
1619
output on chain, then follow it to the force close output. The time locked
1720
address is always the one that's longer (because it's P2WSH and not P2PKH).
@@ -29,14 +32,24 @@ chantools sweeptimelockmanual \
2932
--remoterevbasepoint 03xxxxxxx \
3033
--feerate 10 \
3134
--publish
35+
36+
chantools sweeptimelockmanual \
37+
--sweepaddr bc1q..... \
38+
--timelockaddr bc1q............ \
39+
--frombackup channel.backup \
40+
--channelpoint f39310xxxxxxxxxx:1 \
41+
--feerate 10 \
42+
--publish
3243
```
3344

3445
### Options
3546

3647
```
3748
--apiurl string API URL to use (must be esplora compatible) (default "https://blockstream.info/api")
3849
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
50+
--channelpoint string channel point to use for locating the channel in the channel backup file specified in the --frombackup flag, format: txid:index
3951
--feerate uint32 fee rate to use for the sweep transaction in sat/vByte (default 30)
52+
--frombackup string channel backup file to read the channel information from
4053
--fromchanneldb string channel input is in the format of an lnd channel.db file
4154
--fromsummary string channel input is in the format of chantool's channel summary; specify '-' to read from stdin
4255
-h, --help help for sweeptimelockmanual

lnd/signer.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ func (s *Signer) SignOutputRawWithPrivkey(tx *wire.MsgTx,
4242
signDesc *input.SignDescriptor,
4343
privKey *secp256k1.PrivateKey) (input.Signature, error) {
4444

45-
fmt.Printf("Using private key %x (pubkey %x)\n", privKey.Serialize(), privKey.PubKey().SerializeCompressed())
46-
4745
witnessScript := signDesc.WitnessScript
4846
privKey = maybeTweakPrivKey(signDesc, privKey)
4947

@@ -63,7 +61,6 @@ func (s *Signer) SignOutputRawWithPrivkey(tx *wire.MsgTx,
6361

6462
// This function tweaks the private key using the tap
6563
// root key supplied as the tweak.
66-
fmt.Printf("Using private key %x (pubkey %x)\n", privKey.Serialize(), privKey.PubKey().SerializeCompressed())
6764
rawSig, err = txscript.RawTxInTaprootSignature(
6865
tx, sigHashes, signDesc.InputIndex,
6966
signDesc.Output.Value, signDesc.Output.PkScript,

0 commit comments

Comments
 (0)