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:
Antioch Peverell
2019-01-08 16:07:38 +00:00
committed by GitHub
parent c388af6603
commit 27801f6a93
15 changed files with 120 additions and 87 deletions
+2 -2
View File
@@ -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() {