<
bitcoin-git>
bitcoin/master 498cdbb Ben Woosley: Fix improper Doxygen inline comments
<
bitcoin-git>
bitcoin/master e258ce7 fanquake: Merge #17907: doc: Fix improper Doxygen inline comments
<
hebasto>
hmm, the option to restart travis job is missing for me now...
<
luke-jr>
hebasto: does Travis know you're logged in?
<
hebasto>
sure, I'm logged in. It is possible to "Sign Out"
<
hebasto>
luke-jr: signed out -> signed in. It works now, Thanks!
<
sipa>
Kiminuo: the p2p protocol used to have no distinction between cblock and cblockheader
<
sipa>
headers were just submitted as blocks with no transactiond
<
Kiminuo>
thanks, that makes sene
<
emilengler>
Is there an efficient way to get the output type from a "WalletAddress"?
<
emilengler>
Or from a CTxDestination
<
sipa>
a CTxDestination is a boost::variant
<
sipa>
it has a bunch of built in methods to query the type
<
emilengler>
sipa: I see but what's the "best way" to get the output type from it
<
emilengler>
Looks like there is no function which returns OutputType where CTxDestination is a parameter of
<
sipa>
no, that's impossible
<
sipa>
you can't distinguish p2sh multisig from p2sh-p2wsh multisig for example
<
sipa>
just based on the address
<
emilengler>
Ok thanks
<
sipa>
what are you trying to do?
<
emilengler>
In bitcoin-qt I wanna sort out all non legacy addresses in the sign message dialog as they are useless in this case anyway
<
emilengler>
The addressbook*
<
luke-jr>
can't signmessage with p2sh either, so that's doable
<
luke-jr>
should be able to just use .get
<
emilengler>
luke-jr: get? Of which object?
<
luke-jr>
the CTxDestination
<
luke-jr>
boost::get<PKHash>(&dest)
<
emilengler>
So I need to check every possible type?
<
luke-jr>
only PKHash because that's the only type that's valid for signing
<
luke-jr>
dest.type() is another way, possibly more efficient and more flexible
<
emilengler>
Oh sure
<
emilengler>
thanks
<
emilengler>
what is with .which()
<
emilengler>
luke-jr: Thx, works