mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-26 00:25:26 +02:00
descriptors doc: Correct Markdown format + wording
This commit is contained in:
parent
2db00278ea
commit
99a92efdd9
@ -288,11 +288,11 @@ For example, a descriptor of the form:
|
||||
|
||||
multi(2,xpub.../<0;1;2>/0/*,xpub.../<2;3;4>/*)
|
||||
|
||||
will expand to the two descriptors
|
||||
will expand to the 3 descriptors
|
||||
|
||||
multi(2,xpub.../0/0/*,xpub.../2/*)
|
||||
multi(2,xpub.../1/0/*,xpub.../3/*)
|
||||
multi(2,xpub.../2/0/*,xpub.../4*)
|
||||
multi(2,xpub.../0/0/*,xpub.../2/*)
|
||||
multi(2,xpub.../1/0/*,xpub.../3/*)
|
||||
multi(2,xpub.../2/0/*,xpub.../4/*)
|
||||
|
||||
When this tuple contains only two elements, wallet implementations can use the
|
||||
first descriptor for receiving addresses and the second descriptor for change addresses.
|
||||
|
@ -1447,7 +1447,7 @@ std::optional<uint32_t> ParseKeyPathNum(std::span<const char> elem, bool& apostr
|
||||
for (size_t i = 1; i < split.size(); ++i) {
|
||||
const std::span<const char>& elem = split[i];
|
||||
|
||||
// Check if element contain multipath specifier
|
||||
// Check if element contains multipath specifier
|
||||
if (!elem.empty() && elem.front() == '<' && elem.back() == '>') {
|
||||
if (!allow_multipath) {
|
||||
error = strprintf("Key path value '%s' specifies multipath in a section where multipath is not allowed", std::string(elem.begin(), elem.end()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user