Closed 0xHansLee closed 3 months ago
The recent changes introduce a version argument in the Dockerfile, optimize memory handling in the vm
package, and remove redundant functions. A new test for Merkle tree node copying is added, and the copyNode
function is enhanced to handle LeafNode
instances. These updates aim to improve build configuration, memory management, and testing robustness.
Files | Change Summary |
---|---|
Dockerfile | Added ARG VERSION and modified build command to include -git-tag=$VERSION . |
core/vm/logger.go | Removed bytes import, added memory allocation and copying, removed MaybeAddL1BlockInfo , updated WriteTrace . |
core/vm/logger_json.go | Updated CaptureState method to copy memory and return data into new byte slices. |
eth/tracers/api_blocktrace.go | Removed MaybeAddL1BlockInfo call from getTxResult method. |
trie/zk/merkle_tree_test.go | Added TestCopyNode function to test copying a node in the Merkle tree. |
trie/zk/util.go | Updated copyNode function to handle LeafNode instances properly. |
sequenceDiagram
participant User
participant Docker
participant BuildSystem
participant VM
participant Logger
participant MerkleTree
User->>Docker: Build with VERSION ARG
Docker->>BuildSystem: Run build with -git-tag=$VERSION
BuildSystem->>User: Build Completed
VM->>Logger: CaptureState
Logger->>Logger: Copy Memory and ReturnData
Logger->>VM: State Captured
User->>MerkleTree: Run TestCopyNode
MerkleTree->>MerkleTree: Copy Node and Verify
MerkleTree->>User: Test Result
This diagram illustrates the interactions during the build process, state capturing in the VM, and testing of the Merkle tree node copying functionality.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This is for release v0.5.3