Update core references in grin_store crate to grin_core (#3771)

* update core references in grin_store

* remove redundant as clause
This commit is contained in:
Yeastplume
2023-10-03 09:15:47 +01:00
committed by GitHub
parent 059ae0390d
commit 5e2aa59a15
7 changed files with 170 additions and 195 deletions
+3 -3
View File
@@ -19,9 +19,9 @@ use std::path::{Path, PathBuf};
use croaring::Bitmap;
use crate::core::core::hash::Hashed;
use crate::core::core::pmmr;
use crate::core::core::BlockHeader;
use crate::grin_core::core::hash::Hashed;
use crate::grin_core::core::pmmr;
use crate::grin_core::core::BlockHeader;
use crate::prune_list::PruneList;
use crate::{read_bitmap, save_via_temp_file};
+1 -1
View File
@@ -23,7 +23,7 @@
#[macro_use]
extern crate log;
#[macro_use]
extern crate grin_core as core;
extern crate grin_core;
extern crate grin_util as util;
//use grin_core as core;
+2 -2
View File
@@ -21,8 +21,8 @@ use lmdb_zero as lmdb;
use lmdb_zero::traits::CreateCursor;
use lmdb_zero::LmdbResultExt;
use crate::core::global;
use crate::core::ser::{self, DeserializationMode, ProtocolVersion};
use crate::grin_core::global;
use crate::grin_core::ser::{self, DeserializationMode, ProtocolVersion};
use crate::util::RwLock;
/// number of bytes to grow the database by when needed
+4 -4
View File
@@ -16,10 +16,10 @@
use std::fs;
use std::{io, time};
use crate::core::core::hash::{Hash, Hashed};
use crate::core::core::pmmr::{self, family, Backend};
use crate::core::core::BlockHeader;
use crate::core::ser::{PMMRable, ProtocolVersion};
use crate::grin_core::core::hash::{Hash, Hashed};
use crate::grin_core::core::pmmr::{self, family, Backend};
use crate::grin_core::core::BlockHeader;
use crate::grin_core::ser::{PMMRable, ProtocolVersion};
use crate::leaf_set::LeafSet;
use crate::prune_list::PruneList;
use crate::types::{AppendOnlyFile, DataFile, SizeEntry, SizeInfo};
+1 -1
View File
@@ -30,7 +30,7 @@ use std::{
use croaring::Bitmap;
use grin_core::core::pmmr;
use crate::core::core::pmmr::{bintree_leftmost, bintree_postorder_height, family};
use crate::grin_core::core::pmmr::{bintree_leftmost, bintree_postorder_height, family};
use crate::{read_bitmap, save_via_temp_file};
use std::cmp::min;
+1 -1
View File
@@ -14,7 +14,7 @@
//! Common storage-related types
use tempfile::tempfile;
use crate::core::ser::{
use crate::grin_core::ser::{
self, BinWriter, DeserializationMode, ProtocolVersion, Readable, Reader, StreamingReader,
Writeable, Writer,
};