mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
descriptors: addr() and raw() should return false for ToPrivateString
They don't have any private data and they can't be nested so they should return false for ToPrivateString.
This commit is contained in:
parent
31764c3f87
commit
0b26e7cdf2
1 changed files with 3 additions and 1 deletions
|
@ -612,7 +612,7 @@ public:
|
|||
return AddChecksum(ret);
|
||||
}
|
||||
|
||||
bool ToPrivateString(const SigningProvider& arg, std::string& out) const final
|
||||
bool ToPrivateString(const SigningProvider& arg, std::string& out) const override
|
||||
{
|
||||
bool ret = ToStringHelper(&arg, out, StringType::PRIVATE);
|
||||
out = AddChecksum(out);
|
||||
|
@ -698,6 +698,7 @@ public:
|
|||
return OutputTypeFromDestination(m_destination);
|
||||
}
|
||||
bool IsSingleType() const final { return true; }
|
||||
bool ToPrivateString(const SigningProvider& arg, std::string& out) const final { return false; }
|
||||
};
|
||||
|
||||
/** A parsed raw(H) descriptor. */
|
||||
|
@ -718,6 +719,7 @@ public:
|
|||
return OutputTypeFromDestination(dest);
|
||||
}
|
||||
bool IsSingleType() const final { return true; }
|
||||
bool ToPrivateString(const SigningProvider& arg, std::string& out) const final { return false; }
|
||||
};
|
||||
|
||||
/** A parsed pk(P) descriptor. */
|
||||
|
|
Loading…
Add table
Reference in a new issue