Delete empty labels when they are updated

In order to delete a label, client sends in the
request a null value as label value.

Co-Authored-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
edouardandAntoine Poinsot authored and Antoine Poinsot committed 2023-10-21 09:21:02 +02:00
1 parent a4183dde69
commit 01ca960370
7 files changed
+53 -24

No files matched your search

+3 -2
View File
@@ -312,8 +312,9 @@ cover the requested feerate.
### `updatelabels`
Update the labels from a given map of key/value, with the labelled bitcoin addresses, txids and outpoints as keys
and the label as value. If a label already exist for the given item, the new label overrides the previous one.
Update the labels from a given map of key/value, with the labelled bitcoin addresses, txids and
outpoints as keys and the label as value. If a label already exist for the given item, the new label
overrides the previous one. If a `null` value is passed, the label is deleted.
#### Request