Closed kroggen closed 5 months ago
sync success
Nov 1 05:18:42.040 INF ../go/aergo/cmd/aergosvr/aergosvr.go:100 > AERGO SVR STARTED branch=topic/disable-lua-require module=asvr revision=b9d3bb50
@kslee8282 OK, but a new sync test will be needed later. But probably not just for this PR. We can merge many into one branch to make a sync test for V4 later
This PR removes some Lua functions, starting on hardfork 4:
package
modulerequire
getfenv
setfenv
getmetatable
setmetatable
rawget
rawset
rawequal
string.dump
They continue existing for previous hardforks for compatibility with gas computations. The first 4 are also available when Aergo is build in debug mode
This PR also does not build some disabled packages (os, io, jit, debug) and so the code cannot be accessed in any way
It includes tests to make sure the disabled modules and functions are not available