Address review comments

This commit is contained in:
4l0n50 2024-01-09 11:48:30 +01:00
parent 3c699be781
commit 5b71eb4ee0
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ const MISC_CONSTANTS: [(&str, [u8; 32]); 3] = [
hex!("0000000000000000000000000000000100000000000000000000000000000000"),
),
// Position in SEGMENT_RLP_RAW where the empty node encoding is stored. It is
// equal to u32::MAX + @SEGMENT_RLP_RAW so that all rlp pointers are much smaller than that
// equal to u32::MAX + @SEGMENT_RLP_RAW so that all rlp pointers are much smaller than that.
(
"ENCODED_EMPTY_NODE_POS",
hex!("0000000000000000000000000000000000000000000000000000000CFFFFFFFF"),

View File

@ -1196,7 +1196,7 @@ impl<'a> Interpreter<'a> {
self.generation_state.registers.context = context;
}
/// Writes the encoding of 0 to position @ENCODED_EMPTY_NODE_POS
/// Writes the encoding of 0 to position @ENCODED_EMPTY_NODE_POS.
pub(crate) fn initialize_rlp_segment(&mut self) {
self.generation_state.memory.set(
MemoryAddress::new(0, Segment::RlpRaw, 0xFFFFFFFF),