@@ -117,14 +117,12 @@ impl GetBlockVerbosityOne {
117117 let weight = Weight :: from_wu ( self . weight ) ; // TODO: Confirm this uses weight units.
118118 let version = block:: Version :: from_consensus ( self . version ) ;
119119
120- // FIXME: Is there a better way to handle the error without type annotations on `collect`?
121120 let tx = self
122121 . tx
123122 . iter ( )
124123 . map ( |t| encode:: deserialize_hex :: < Txid > ( t) . map_err ( E :: Tx ) )
125124 . collect :: < Result < Vec < _ > , _ > > ( ) ?;
126125
127- // FIXME: Is unprefixed correct?
128126 let bits = CompactTarget :: from_unprefixed_hex ( & self . bits ) . map_err ( E :: Bits ) ?;
129127 let chain_work = Work :: from_unprefixed_hex ( & self . chain_work ) . map_err ( E :: ChainWork ) ?;
130128
@@ -161,7 +159,7 @@ impl GetBlockVerbosityOne {
161159 }
162160}
163161
164- /// Error when converting a `GetBlockVerbasityOne ` type into the model type.
162+ /// Error when converting a `GetBlockVerbosityOne ` type into the model type.
165163#[ derive( Debug ) ]
166164pub enum GetBlockVerbosityOneError {
167165 /// Conversion of the transaction `hash` field failed.
@@ -317,7 +315,6 @@ impl GetBlockchainInfo {
317315 let chain = Network :: from_core_arg ( & self . chain ) . map_err ( E :: Chain ) ?;
318316 let best_block_hash =
319317 self . best_block_hash . parse :: < BlockHash > ( ) . map_err ( E :: BestBlockHash ) ?;
320- // FIXME: Is unprefixed correct?
321318 let chain_work = Work :: from_unprefixed_hex ( & self . chain_work ) . map_err ( E :: ChainWork ) ?;
322319
323320 let softforks = BTreeMap :: new ( ) ; // TODO: Handle softforks stuff.
@@ -343,7 +340,6 @@ impl GetBlockchainInfo {
343340 }
344341}
345342
346- // FIXME: Me mightn't need this.
347343impl Bip9SoftforkStatus {
348344 /// Converts version specific type to a version in-specific, more strongly typed type.
349345 pub fn into_model ( self ) -> model:: Bip9SoftforkStatus {
0 commit comments