aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormarcoagner <marco@agner.io>2018-10-05 13:33:21 +0100
committermarcoagner <marco@agner.io>2018-10-05 13:33:21 +0100
commita6b5ec18ff39ef3ccd19ec0e6db9ae00602d8938 (patch)
tree0a19e6b08b4c3cac3ceb9d7d86ee95866481257d /doc
parentf504a1402afd0760e9d348ecc8bad0094aa7d705 (diff)
downloadbitcoin-a6b5ec18ff39ef3ccd19ec0e6db9ae00602d8938.tar.xz
rpc: creates possibility to preserve labels on importprivkey
- changes importprivkey behavior to overwrite existent label if one is passed and keep existing ones if no label is passed - tests behavior of importprivkey on existing address labels and different same key destination
Diffstat (limited to 'doc')
-rw-r--r--doc/release-notes-pr13381.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/release-notes-pr13381.md b/doc/release-notes-pr13381.md
new file mode 100644
index 0000000000..75faad9906
--- /dev/null
+++ b/doc/release-notes-pr13381.md
@@ -0,0 +1,29 @@
+RPC importprivkey: new label behavior
+-------------------------------------
+
+Previously, `importprivkey` automatically added the default empty label
+("") to all addresses associated with the imported private key. Now it
+defaults to using any existing label for those addresses. For example:
+
+- Old behavior: you import a watch-only address with the label "cold
+ wallet". Later, you import the corresponding private key using the
+ default settings. The address's label is changed from "cold wallet"
+ to "".
+
+- New behavior: you import a watch-only address with the label "cold
+ wallet". Later, you import the corresponding private key using the
+ default settings. The address's label remains "cold wallet".
+
+In both the previous and current case, if you directly specify a label
+during the import, that label will override whatever previous label the
+addresses may have had. Also in both cases, if none of the addresses
+previously had a label, they will still receive the default empty label
+(""). Examples:
+
+- You import a watch-only address with the label "temporary". Later you
+ import the corresponding private key with the label "final". The
+ address's label will be changed to "final".
+
+- You use the default settings to import a private key for an address that
+ was not previously in the wallet. Its addresses will receive the default
+ empty label ("").