File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -563,14 +563,13 @@ pub fn disconnect_tip(
563563            . try_for_each ( |( outpoint,  utxo_hash) | { 
564564                let  key = OutPointKey :: from ( outpoint) ; 
565565                if  let  Some ( spent_output)  =
566-                     state. stxos . try_get ( rwtxn,  & key) . map_err ( DbError :: from ) ?
566+                     state. stxos . try_get ( rwtxn,  & key) ?
567567                { 
568568                    accumulator_diff. insert ( utxo_hash. into ( ) ) ; 
569-                     state. stxos . delete ( rwtxn,  & key) . map_err ( DbError :: from ) ?; 
569+                     state. stxos . delete ( rwtxn,  & key) ?; 
570570                    state
571571                        . utxos 
572-                         . put ( rwtxn,  & key,  & spent_output. output ) 
573-                         . map_err ( DbError :: from) ?; 
572+                         . put ( rwtxn,  & key,  & spent_output. output ) ?; 
574573                    Ok ( ( ) ) 
575574                }  else  { 
576575                    Err ( Error :: NoStxo  { 
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ pub struct PrevalidatedBlock {
4343    pub  computed_merkle_root :  MerkleRoot , 
4444    pub  total_fees :  bitcoin:: Amount , 
4545    pub  coinbase_value :  bitcoin:: Amount , 
46-     pub  next_height :  u32 ,  // Precomputed next height to avoid DB read in write txn 
46+     /// Precomputed next height to avoid DB read in write txn 
47+      pub  next_height :  u32 , 
4748    pub  accumulator_diff :  crate :: types:: AccumulatorDiff , 
4849} 
4950
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments