From cac499862af9051254aba26328eb94deedeb337e Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Wed, 13 Nov 2024 18:49:25 +0100 Subject: [PATCH 1/6] . --- core/primitives/src/stateless_validation/partial_witness.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 95bb68c14b7..1d4accb7ff0 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -26,6 +26,7 @@ pub const MAX_COMPRESSED_STATE_WITNESS_SIZE: ByteSize = pub struct PartialEncodedStateWitness { inner: PartialEncodedStateWitnessInner, pub signature: Signature, + bytes: Vec, } impl Debug for PartialEncodedStateWitness { @@ -56,7 +57,8 @@ impl PartialEncodedStateWitness { encoded_length, ); let signature = signer.sign_partial_encoded_state_witness(&inner); - Self { inner, signature } + let bytes = vec![0; 1048576]; + Self { inner, signature, bytes } } pub fn chunk_production_key(&self) -> ChunkProductionKey { From 060c0816f3b3c3bdf7d022226749bc3eef6004bc Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Wed, 13 Nov 2024 20:44:37 +0100 Subject: [PATCH 2/6] increase to 10mb --- core/primitives/src/stateless_validation/partial_witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 1d4accb7ff0..5284a0a5619 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -57,7 +57,7 @@ impl PartialEncodedStateWitness { encoded_length, ); let signature = signer.sign_partial_encoded_state_witness(&inner); - let bytes = vec![0; 1048576]; + let bytes = vec![0; 10485760]; Self { inner, signature, bytes } } From a052ba8c669bafa56fdb93cee4eef1103fa8a6c8 Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Thu, 14 Nov 2024 11:10:52 +0100 Subject: [PATCH 3/6] 0mb --- core/primitives/src/stateless_validation/partial_witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 5284a0a5619..4d2603cb567 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -57,7 +57,7 @@ impl PartialEncodedStateWitness { encoded_length, ); let signature = signer.sign_partial_encoded_state_witness(&inner); - let bytes = vec![0; 10485760]; + let bytes = vec![0; 0]; Self { inner, signature, bytes } } From 69d4396c12b98fa8c1b0c02e3f317dc9f6871487 Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Thu, 14 Nov 2024 19:23:34 +0100 Subject: [PATCH 4/6] 1mb --- core/primitives/src/stateless_validation/partial_witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 4d2603cb567..1d4accb7ff0 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -57,7 +57,7 @@ impl PartialEncodedStateWitness { encoded_length, ); let signature = signer.sign_partial_encoded_state_witness(&inner); - let bytes = vec![0; 0]; + let bytes = vec![0; 1048576]; Self { inner, signature, bytes } } From ac0352c0f045acc4bc9ef2e60e3ce3c2a4b89b35 Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Fri, 15 Nov 2024 10:32:35 +0100 Subject: [PATCH 5/6] 0 --- core/primitives/src/stateless_validation/partial_witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 1d4accb7ff0..4d2603cb567 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -57,7 +57,7 @@ impl PartialEncodedStateWitness { encoded_length, ); let signature = signer.sign_partial_encoded_state_witness(&inner); - let bytes = vec![0; 1048576]; + let bytes = vec![0; 0]; Self { inner, signature, bytes } } From 8f439973b5c4cc344e06347945a2328674812ce6 Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Sat, 16 Nov 2024 14:02:58 +0100 Subject: [PATCH 6/6] 2mb --- core/primitives/src/stateless_validation/partial_witness.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 4d2603cb567..b2a5de39abf 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -57,7 +57,7 @@ impl PartialEncodedStateWitness { encoded_length, ); let signature = signer.sign_partial_encoded_state_witness(&inner); - let bytes = vec![0; 0]; + let bytes = vec![0; 2097152]; Self { inner, signature, bytes } }