mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 14:40:40 +01:00
TransactionOutput: fix not resolving P2TR addresses in toString()
This commit is contained in:
parent
3caad70759
commit
04378aa638
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ public class TransactionOutput extends ChildMessage {
|
|||
Script script = getScriptPubKey();
|
||||
StringBuilder buf = new StringBuilder("TxOut of ");
|
||||
buf.append(Coin.valueOf(value).toFriendlyString());
|
||||
if (ScriptPattern.isP2PKH(script) || ScriptPattern.isP2WPKH(script)
|
||||
if (ScriptPattern.isP2PKH(script) || ScriptPattern.isP2WPKH(script) || ScriptPattern.isP2TR(script)
|
||||
|| ScriptPattern.isP2SH(script))
|
||||
buf.append(" to ").append(script.getToAddress(params));
|
||||
else if (ScriptPattern.isP2PK(script))
|
||||
|
|
Loading…
Add table
Reference in a new issue