mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
Merge pull request #610 from mir-protocol/feedback_591
Address some feedback on #591
This commit is contained in:
commit
a9fe08a4a7
@ -42,7 +42,7 @@ impl MemorySegmentState {
|
||||
}
|
||||
|
||||
pub(super) fn set(&mut self, virtual_addr: usize, value: U256) {
|
||||
if virtual_addr + 1 > self.content.len() {
|
||||
if virtual_addr >= self.content.len() {
|
||||
self.content.resize(virtual_addr + 1, U256::zero());
|
||||
}
|
||||
self.content[virtual_addr] = value;
|
||||
|
||||
@ -12,6 +12,8 @@ use crate::util::trace_rows_to_poly_values;
|
||||
mod memory;
|
||||
pub(crate) mod state;
|
||||
|
||||
/// A piece of data which has been encoded using Recursive Length Prefix (RLP) serialization.
|
||||
/// See https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/
|
||||
pub type RlpBlob = Vec<u8>;
|
||||
|
||||
/// Merkle proofs are encoded using an RLP blob for each node in the path.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user