Replace UTXO::is_internal with script_type
This means less conversion and logic mapping from bool to ScriptType and back again.
This commit is contained in:
@@ -538,7 +538,7 @@ mod test {
|
||||
value: 100_000,
|
||||
script_pubkey: Script::new(),
|
||||
},
|
||||
is_internal: false,
|
||||
script_type: ScriptType::External,
|
||||
},
|
||||
P2WPKH_WITNESS_SIZE,
|
||||
),
|
||||
@@ -552,7 +552,7 @@ mod test {
|
||||
value: 200_000,
|
||||
script_pubkey: Script::new(),
|
||||
},
|
||||
is_internal: true,
|
||||
script_type: ScriptType::Internal,
|
||||
},
|
||||
P2WPKH_WITNESS_SIZE,
|
||||
),
|
||||
@@ -572,7 +572,7 @@ mod test {
|
||||
value: rng.gen_range(0, 200000000),
|
||||
script_pubkey: Script::new(),
|
||||
},
|
||||
is_internal: false,
|
||||
script_type: ScriptType::External,
|
||||
},
|
||||
P2WPKH_WITNESS_SIZE,
|
||||
));
|
||||
@@ -591,7 +591,7 @@ mod test {
|
||||
value: utxos_value,
|
||||
script_pubkey: Script::new(),
|
||||
},
|
||||
is_internal: false,
|
||||
script_type: ScriptType::External,
|
||||
},
|
||||
P2WPKH_WITNESS_SIZE,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user