optimizations, petty
This commit is contained in:
parent
01ceb902c5
commit
a820e52fce
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user