File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
zebra-consensus/src/primitives Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -144,14 +144,9 @@ impl From<&zebra_chain::orchard::ShieldedData> for Item {
144144 . flags
145145 . contains ( zebra_chain:: orchard:: Flags :: ENABLE_OUTPUTS ) ;
146146
147- // FIXME: simplify the flags creation - make `Flags::from_parts` method pub?
148147 // FIXME: support OrchardZSA?
149- let flags = match ( enable_spend, enable_output) {
150- ( false , false ) => orchard:: builder:: BundleType :: DISABLED . flags ( ) ,
151- ( false , true ) => orchard:: bundle:: Flags :: SPENDS_DISABLED_WITHOUT_ZSA ,
152- ( true , false ) => orchard:: bundle:: Flags :: OUTPUTS_DISABLED ,
153- ( true , true ) => orchard:: bundle:: Flags :: ENABLED_WITHOUT_ZSA ,
154- } ;
148+ let flags = orchard:: bundle:: Flags :: from_byte ( shielded_data. flags . bits ( ) )
149+ . expect ( "type should not have unexpected bits" ) ;
155150
156151 let instances = shielded_data
157152 . actions ( )
You can’t perform that action at this time.
0 commit comments