vsc-eco / vsc-node

Node software powering the next generation smart contract L2 on the HIVE blockchain
https://vsc.eco
GNU General Public License v3.0
11 stars 5 forks source link

Replace VM2 with isolated-vm #8

Closed techcoderx closed 10 months ago

techcoderx commented 1 year ago

Due to https://github.com/patriksimek/vm2/issues/533, the execution engine will have to be replaced with isolated-vm.

The replacement package allows for setting a memory limit (in MB). This may be useful to define a "memory limit" on a transaction basis to calculate a max tx fee for contract calls.

Tested working on my node so far with some contract calls.

vaultec81 commented 11 months ago

@techcoderx Can you pull from master & resolve merge conflicts?

techcoderx commented 11 months ago

Done, please double check to make sure all the latest methods are being passed in correctly.

techcoderx commented 11 months ago

Apologies for the delay. Missed a few commas in the template which was why it did not compile.