]> Untitled Git - bitcoindevkit.org/commitdiff
Add --assume_height for the sign repl command
authorAlekos Filini <alekos.filini@gmail.com>
Wed, 6 May 2020 15:23:37 +0000 (17:23 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Wed, 6 May 2020 15:23:37 +0000 (17:23 +0200)
content/repl/interface.md

index 90acc4f4fa6ba7ce08d1661d1add0216794eb78b..1c4aca3f35d7f6a09b2319bff753e172fbef3aad 100644 (file)
@@ -417,12 +417,18 @@ This subcommand has no extra flags and launches an interactive shell session.
 
 ```text
 OPTIONS:
+        --assume_height <HEIGHT>    Assume the blockchain has reached a specific height. This affects the transaction
+                                    finalization, if there are timelocks in the descriptor
         --psbt <BASE64_PSBT>    Sets the PSBT to sign
 ```
 
 Adds to the PSBT all the signatures it can produce with the secrets embedded in the descriptor (xprv or WIF keys). Returns the signed PSBT and, if there are enough item to satisfy the script, also the extracted raw
 Bitcoin transaction.
 
+Optionally, the `assume_height` option can be specified to let the wallet assume the blockchain has reached a specific height. This affects the finalization of the PSBT which is done right at the end of the signing
+process: the wallet tries to satisfy the spending condition of each input using the partial signatures collected. In case timelocks are present the wallet needs to know whether or not they have expired. This flag
+is particularly useful for offline wallets.
+
 ### `sync`
 
 This subcommand has no extra flags. It connects to the chosen Electrum server and synchronizes the list of transactions received and available UTXOs.