Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Lau committed Sep 9, 2021
1 parent 3c748e7 commit 687eab7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frame/merkle-mountain-range/src/mmr/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use mmr_lib::helper;
use sp_io::offchain_index;
#[cfg(not(feature = "std"))]
use sp_std::prelude::Vec;
use frame_support::if_std;

use crate::{
mmr::{Node, NodeOf},
Expand Down Expand Up @@ -85,10 +86,6 @@ where
Ok(<Nodes<T, I>>::get(pos).map(Node::Hash))
}

// ? Actually we can move this pruning logic outside
// ? and perform the pruning every X blocks
// ?
// ? commented by Xavier
fn append(&mut self, pos: NodeIndex, elems: Vec<NodeOf<T, I, L>>) -> mmr_lib::Result<()> {
let leaves = crate::NumberOfLeaves::<T, I>::get();
let size = crate::mmr::utils::NodesUtils::new(leaves).size();
Expand Down

0 comments on commit 687eab7

Please sign in to comment.