Skip to content

Commit

Permalink
Remove tx is too large check
Browse files Browse the repository at this point in the history
  • Loading branch information
rrybarczyk committed Nov 20, 2018
1 parent 4c1abf3 commit de243e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions riemann/tests/tx/test_tx.py
Expand Up @@ -438,18 +438,6 @@ def test_tx_inandout(self):
'Invalid TxOut. Expected instance of TxOut. Got int',
str(context.exception))

with self.assertRaises(ValueError) as context:
tx_in = self.tx_ins[0].copy(stack_script=b'\x00' * 1616,
redeem_script=None)
tx_ins = [tx_in for _ in range(255)]
tx_outs = [self.tx_outs[0] for _ in range(255)]
tx.Tx(self.version, self.none_flag, tx_ins, tx_outs,
None, self.lock_time)

self.assertIn(
'Tx is too large. Expect less than 100kB. Got: ',
str(context.exception))

def test_tx_inout_mutation(self):
t = tx.Tx(self.version, self.none_flag, self.tx_ins, self.tx_outs,
self.none_witnesses, self.lock_time)
Expand Down
5 changes: 0 additions & 5 deletions riemann/tx/tx.py
Expand Up @@ -325,11 +325,6 @@ def __init__(self, version, flag, tx_ins,
else None
self.lock_time = lock_time

if len(self) > 100000:
raise ValueError(
'Tx is too large. '
'Expect less than 100kB. Got: {} bytes'.format(len(self)))

if flag is not None:
self.tx_id_le = utils.hash256(self.no_witness())
self.wtx_id_le = utils.hash256(self.to_bytes())
Expand Down

0 comments on commit de243e2

Please sign in to comment.