|
23 | 23 | def small_txpuzzle_randfee(from_node, conflist, unconflist, amount, min_fee, fee_increment):
|
24 | 24 | '''
|
25 | 25 | Create and send a transaction with a random fee.
|
26 |
| - The transaction pays to a trival P2SH script, and assumes that its inputs |
| 26 | + The transaction pays to a trivial P2SH script, and assumes that its inputs |
27 | 27 | are of the same form.
|
28 | 28 | The function takes a list of confirmed outputs and unconfirmed outputs
|
29 | 29 | and attempts to use the confirmed list first for its inputs.
|
@@ -53,7 +53,7 @@ def small_txpuzzle_randfee(from_node, conflist, unconflist, amount, min_fee, fee
|
53 | 53 | outputs = OrderedDict([(P2SH_1, total_in - amount - fee),
|
54 | 54 | (P2SH_2, amount)])
|
55 | 55 | rawtx = from_node.createrawtransaction(inputs, outputs)
|
56 |
| - # Createrawtransaction constructions a transaction that is ready to be signed |
| 56 | + # createrawtransaction constructs a transaction that is ready to be signed. |
57 | 57 | # These transactions don't need to be signed, but we still have to insert the ScriptSig
|
58 | 58 | # that will satisfy the ScriptPubKey.
|
59 | 59 | completetx = rawtx[0:10]
|
@@ -223,7 +223,7 @@ def transact_and_mine(self, numblocks, mining_node):
|
223 | 223 | sync_mempools(self.nodes[0:3],.1)
|
224 | 224 | mined = mining_node.getblock(mining_node.generate(1)[0],True)["tx"]
|
225 | 225 | sync_blocks(self.nodes[0:3],.1)
|
226 |
| - #update which txouts are confirmed |
| 226 | + # update which txouts are confirmed |
227 | 227 | newmem = []
|
228 | 228 | for utx in self.memutxo:
|
229 | 229 | if utx["txid"] in mined:
|
|
0 commit comments