(self, spend_tx, n, value, output_script=None)
| 1336 | |
| 1337 | # this is a little handier to use than the version in blocktools.py |
| 1338 | def create_tx(self, spend_tx, n, value, output_script=None): |
| 1339 | if output_script is None: |
| 1340 | output_script = CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]) |
| 1341 | return create_tx_with_script(spend_tx, n, amount=value, output_script=output_script) |
| 1342 | |
| 1343 | # sign a transaction, using the key we know about |
| 1344 | # this signs input 0 in tx, which is assumed to be spending output 0 in spend_tx |
no test coverage detected