(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]))
| 1359 | |
| 1360 | # this is a little handier to use than the version in blocktools.py |
| 1361 | def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE])): |
| 1362 | fee = spend_tx.vout[n].nValue.getAmount() - value |
| 1363 | return create_tx_with_script(spend_tx, n, amount=value, fee=fee, script_pub_key=script) |
| 1364 | |
| 1365 | # update the fee output amount and also move it to the end |
| 1366 | def update_fee(self, tx, prev_tx, prev_n): |
no test coverage detected