Skip to content

Commit 0e6934e

Browse files
committed
Merge #614: Fix output of CTxOut.__repl__
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
2 parents 2e887cf + 8d43c79 commit 0e6934e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwilib/tx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def is_witness(self) -> Tuple[bool, int, bytes]:
138138

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

143143

144144
class CScriptWitness(object):

0 commit comments

Comments
 (0)