Skip to content

Commit 8715176

Browse files
committed
Automatic project update
1 parent 50f4138 commit 8715176

File tree

5 files changed

+6
-34
lines changed

5 files changed

+6
-34
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
[package]
1717
name = "ton_node"
18-
version = "0.47.74"
18+
version = "0.47.76"
1919
edition = "2018"
2020

2121
[workspace]

commit_hash.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5f541c79c9ab9633d822449d39745284b06ebd8f
1+
4440e4962355306dd716ce63ed97ec5e2d42c528

src/engine.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ impl Engine {
452452
&engine_allocated
453453
)?;
454454

455-
log::info!("start_states_gc");
455+
//log::info!("start_states_gc");
456456
let state_gc_resolver = Arc::new(AllowStateGcSmartResolver::new());
457-
db.start_states_gc(state_gc_resolver.clone());
457+
//db.start_states_gc(state_gc_resolver.clone());
458458

459459
log::info!("Engine is created.");
460460

src/internal_db/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ impl InternalDbImpl {
340340
Ok(db)
341341
}
342342

343+
#[allow(dead_code)]
343344
pub fn start_states_gc(&self, resolver: Arc<dyn AllowStateGcResolver>) {
344345
self.shard_state_dynamic_db.clone().start_gc(resolver, self.cells_gc_interval.clone())
345346
}

storage/src/archives/package_entry_id.rs

+1-30
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use ton_block::{BlockIdExt, ShardIdent};
1111
use ton_types::{error, fail, Result, UInt256};
1212

1313

14-
#[derive(Debug, PartialEq, Eq)]
14+
#[derive(Debug, Hash, PartialEq, Eq)]
1515
pub enum PackageEntryId<B, U256, PK>
1616
where
1717
B: Borrow<BlockIdExt> + Hash,
@@ -29,35 +29,6 @@ where
2929
BlockInfo(B),
3030
}
3131

32-
impl<B, U256, PK> Hash for PackageEntryId<B, U256, PK>
33-
where
34-
B: Borrow<BlockIdExt> + Hash,
35-
U256: Borrow<UInt256> + Hash,
36-
PK: Borrow<UInt256> + Hash
37-
{
38-
fn hash<H: Hasher>(&self, state: &mut H) {
39-
match self {
40-
PackageEntryId::Empty => {}
41-
PackageEntryId::Block(b) => b.borrow().hash(state),
42-
PackageEntryId::ZeroState(b) => b.borrow().hash(state),
43-
PackageEntryId::PersistentState { mc_block_id, block_id } => {
44-
mc_block_id.hash(state);
45-
block_id.hash(state);
46-
},
47-
PackageEntryId::Proof(b) => b.borrow().hash(state),
48-
PackageEntryId::ProofLink(b) => b.borrow().hash(state),
49-
PackageEntryId::Signatures(b) => b.borrow().hash(state),
50-
PackageEntryId::Candidate { block_id, collated_data_hash, source } => {
51-
block_id.hash(state);
52-
collated_data_hash.hash(state);
53-
source.hash(state);
54-
}
55-
PackageEntryId::BlockInfo(b) => b.borrow().hash(state),
56-
}
57-
}
58-
59-
}
60-
6132
impl PackageEntryId<BlockIdExt, UInt256, UInt256> {
6233
pub fn from_filename(filename: &str) -> Result<Self> {
6334
if filename == PackageEntryId::<BlockIdExt, UInt256, UInt256>::Empty.filename_prefix() {

0 commit comments

Comments
 (0)