File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/functional/test_framework Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ def generate(self, num_blocks):
42
42
43
43
def send_self_transfer (self , * , fee_rate , from_node ):
44
44
"""Create and send a tx with the specified fee_rate. Fee may be exact or at most one satoshi higher than needed."""
45
- self ._utxos = sorted (self ._utxos , key = lambda k : - k ['value' ])
45
+ self ._utxos = sorted (self ._utxos , key = lambda k : k ['value' ])
46
46
largest_utxo = self ._utxos .pop () # Pick the largest utxo and hope it covers the fee
47
47
vsize = Decimal (96 )
48
48
send_value = satoshi_round (largest_utxo ['value' ] - fee_rate * (vsize / 1000 ))
49
49
fee = largest_utxo ['value' ] - send_value
50
- assert ( send_value > 0 )
50
+ assert send_value > 0
51
51
52
52
tx = CTransaction ()
53
53
tx .vin = [CTxIn (COutPoint (int (largest_utxo ['txid' ], 16 ), largest_utxo ['vout' ]))]
You can’t perform that action at this time.
0 commit comments