Skip to content

Fix/boc depth hashes#174

Open
ignaty8 wants to merge 3 commits intomainfrom
fix/boc-depth-hashes
Open

Fix/boc depth hashes#174
ignaty8 wants to merge 3 commits intomainfrom
fix/boc-depth-hashes

Conversation

@ignaty8
Copy link
Contributor

@ignaty8 ignaty8 commented Nov 5, 2025

No description provided.

@ignaty8 ignaty8 requested review from SeHor05 and awnion and removed request for awnion November 5, 2025 14:07
root1.append_raw(&[0], 8).unwrap();

for i in 0..1024 {
for i in 0..800 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's new depth limit? Can we use common static const var here?

// cell.finalize(2048).unwrap();
let _cell = TokenValue::write_bytes(&[100u8; 128 * 2000], &ABI_VERSION_2_4)
.unwrap()
let mut data = [100u8; 98 * 1024 + 1248].to_vec();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100 KB cell is maximum now?

fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
core::mem::discriminant(self).hash(state);
match self {
HashableCell::Any(cell) => cell.hash(MAX_LEVEL).hash(state),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should be tested well, it can seriously affect performance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants