pub fn open(ledger_path: &str) -> io::Result<Self> {
        let ledger_path = Path::new(&ledger_path);

        let index = File::open(ledger_path.join(LEDGER_INDEX_FILE))?;
        let index = BufReader::new(index);
        let data = File::open(ledger_path.join(LEDGER_DATA_FILE))?;
        let data = BufReader::with_capacity(BLOB_DATA_SIZE, data);

        Ok(LedgerWindow { index, data })
    }
// opens a Ledger in directory, provides "infinite" window
//
opens a Ledger in directory, provides "infinite" window
opens a Ledger in directory provides " infinite " window
pub fn open(ledger_path: &str) -> io::Result<Self> {
        let ledger_path = Path::new(&ledger_path);
        let index = File::open(ledger_path.join(LEDGER_INDEX_FILE))?;
        let index = BufReader::new(index);
        let data = File::open(ledger_path.join(LEDGER_DATA_FILE))?;
        let data = BufReader::with_capacity(BLOB_DATA_SIZE, data);
        Ok(LedgerWindow { index, data })
    }
pub fn open ( ledger_path : & str ) -> io :: Result < Self > { let ledger_path = Path :: new ( & ledger_path ) ; let index = File :: open ( ledger_path . join ( LEDGER_INDEX_FILE ) ) ? ; let index = BufReader :: new ( index ) ; let data = File :: open ( ledger_path . join ( LEDGER_DATA_FILE ) ) ? ; let data = BufReader :: with_capacity ( BLOB_DATA_SIZE , data ) ; Ok ( LedgerWindow { index , data } ) }
opens a Ledger in directory, provides "infinite" window
opens a Ledger in directory provides " infinite " window
ledger_path
&str
ledger_path
&str