optimizations, petty

This commit is contained in:
Peter D. Gray 2026-02-25 11:04:13 -05:00 committed by doc-hex
parent 01ceb902c5
commit a820e52fce

View File

@ -27,8 +27,8 @@ ripemd160 = ngu.hash.ripemd160
hash256 = ngu.hash.sha256d
hash160 = ngu.hash.hash160
def bytes_to_hex_str(s):
return str(b2a_hex(s), 'ascii')
#def bytes_to_hex_str(s):
# return str(b2a_hex(s), 'ascii')
SIGHASH_DEFAULT = const(0) # in taproot meaning same as SIGHASH_ALL (over whole TX)
SIGHASH_ALL = const(1)
@ -328,7 +328,6 @@ class CTxIn(object):
self.nSequence = nSequence
def deserialize(self, f):
self.prevout = COutPoint()
self.prevout.deserialize(f)
self.scriptSig = deser_string(f)
self.nSequence = struct.unpack("<I", f.read(4))[0]