Implement kernel and output features as enums (#2312)
* use enums for kernel and output features * rustfmt * add test coverage around deserializing kernel features
This commit is contained in:
@@ -44,8 +44,8 @@ pub fn get_output(
|
||||
// For now we can just try both (but this probably needs to be part of the api
|
||||
// params)
|
||||
let outputs = [
|
||||
OutputIdentifier::new(OutputFeatures::PLAIN, &commit),
|
||||
OutputIdentifier::new(OutputFeatures::COINBASE, &commit),
|
||||
OutputIdentifier::new(OutputFeatures::Plain, &commit),
|
||||
OutputIdentifier::new(OutputFeatures::Coinbase, &commit),
|
||||
];
|
||||
|
||||
for x in outputs.iter() {
|
||||
|
||||
Reference in New Issue
Block a user