godwoken-polyjuice
godwoken-polyjuice copied to clipboard
An Ethereum compatible backend for Godwoken rollup framework. Moved to monorepo https://github.com/godwokenrises/godwoken
A new fuzz test is added in this pr, inspired by `evmone fuzz test`. This fuzz test uses [gw-syscall-simulator](https://github.com/magicalne/gw-syscall-simulator) to mock syscalls. The fuzz test found two memory leaks. And...
Call depth is limited to 32, due to 4 MB maximum runtime memory for running contracts in [CKB VM](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0003-ckb-vm/0003-ckb-vm.md#risc-v-runtime-model). - [x] Add test case for this
https://github.com/nervosnetwork/godwoken-polyjuice/blob/ebf5654c82d42cc4fd92fa1b2f6cd60f493febac/c/contracts.h#L82 It could be optimized to only initialize once.