aggstam 3 лет назад
Родитель
Сommit
9cd9d13456
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      src/blockchain/mod.rs
  2. 2 2
      src/validator/consensus/mod.rs

+ 1 - 1
src/blockchain/mod.rs

@@ -542,7 +542,7 @@ impl BlockchainOverlay {
     }
     }
 
 
     /// Auxiliary function to create a full clone using SledDbOverlay::clone,
     /// Auxiliary function to create a full clone using SledDbOverlay::clone,
-    /// and creating new pointers of underlying overlays.
+    /// generating new pointers for the underlying overlays.
     pub fn full_clone(&self) -> Result<BlockchainOverlayPtr> {
     pub fn full_clone(&self) -> Result<BlockchainOverlayPtr> {
         let overlay = Arc::new(Mutex::new(self.overlay.lock().unwrap().clone()));
         let overlay = Arc::new(Mutex::new(self.overlay.lock().unwrap().clone()));
         let headers = HeaderStoreOverlay::new(&overlay)?;
         let headers = HeaderStoreOverlay::new(&overlay)?;

+ 2 - 2
src/validator/consensus/mod.rs

@@ -97,8 +97,8 @@ impl Fork {
     }
     }
 
 
     /// Auxiliary function to create a full clone using BlockchainOverlay::full_clone.
     /// Auxiliary function to create a full clone using BlockchainOverlay::full_clone.
-    /// Changes to this clone don't affect original record, since underlying overlay
-    /// is cloned and pointers have been updated to the new one.
+    /// Changes to this copy don't affect original fork overlay records, since underlying
+    /// overlay pointer have been updated to the cloned one.
     pub fn full_clone(&self) -> Result<Self> {
     pub fn full_clone(&self) -> Result<Self> {
         let overlay = self.overlay.lock().unwrap().full_clone()?;
         let overlay = self.overlay.lock().unwrap().full_clone()?;
         let proposals = self.proposals.clone();
         let proposals = self.proposals.clone();