Skip to content

Commit

Permalink
Merge bitcoin-core#614: Fix output of CTxOut.__repl__
Browse files Browse the repository at this point in the history
8d43c79 Fix output of CTxOut.__repl__ (Salvatore Ingala)

Pull request description:

  Fixing a tiny mistake in printing the outpoints as strings.

ACKs for top commit:
  laanwj:
    Looks correct to me, ACK 8d43c79
  prusnak:
    ACK 8d43c79

Tree-SHA512: 73e980bf623ba667fd59e44e373ed0667387b8d21b147e39bfa044b2dd90e31d0ca1f22df41fa0080818359455dab6703ea8c98aa2aec0a62a096749cf06c9eb
  • Loading branch information
achow101 committed Jun 15, 2022
2 parents 2e887cf + 8d43c79 commit 0e6934e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwilib/tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def is_witness(self) -> Tuple[bool, int, bytes]:

def __repr__(self) -> str:
return "CTxOut(nValue=%i.%08i scriptPubKey=%s)" \
% (self.nValue, self.nValue, self.scriptPubKey.hex())
% (self.nValue // 100_000_000, self.nValue % 100_000_000, self.scriptPubKey.hex())


class CScriptWitness(object):
Expand Down

0 comments on commit 0e6934e

Please sign in to comment.