Rename ScriptType to KeychainKind

This avoids confusion with the "type of script".
This commit is contained in:
Alekos Filini
2020-12-14 17:14:24 +01:00
parent 7adaaf227c
commit 1713d621d4
19 changed files with 322 additions and 333 deletions

View File

@@ -539,7 +539,7 @@ mod test {
value: 100_000,
script_pubkey: Script::new(),
},
script_type: ScriptType::External,
keychain: KeychainKind::External,
},
P2WPKH_WITNESS_SIZE,
),
@@ -553,7 +553,7 @@ mod test {
value: 200_000,
script_pubkey: Script::new(),
},
script_type: ScriptType::Internal,
keychain: KeychainKind::Internal,
},
P2WPKH_WITNESS_SIZE,
),
@@ -573,7 +573,7 @@ mod test {
value: rng.gen_range(0, 200000000),
script_pubkey: Script::new(),
},
script_type: ScriptType::External,
keychain: KeychainKind::External,
},
P2WPKH_WITNESS_SIZE,
));
@@ -592,7 +592,7 @@ mod test {
value: utxos_value,
script_pubkey: Script::new(),
},
script_type: ScriptType::External,
keychain: KeychainKind::External,
},
P2WPKH_WITNESS_SIZE,
);