Commit 90375e0a authored by vipwzw's avatar vipwzw Committed by 33cn

set unfreeze fork: fixed #249

parent 59703110
...@@ -22,7 +22,7 @@ func init() { ...@@ -22,7 +22,7 @@ func init() {
// Init 重命名执行器名称 // Init 重命名执行器名称
func Init(name string, sub []byte) { func Init(name string, sub []byte) {
drivers.Register(GetName(), newUnfreeze, 0) drivers.Register(GetName(), newUnfreeze, types.GetDappFork(driverName, "Enable"))
} }
// Unfreeze 执行器结构体 // Unfreeze 执行器结构体
......
...@@ -24,6 +24,7 @@ func init() { ...@@ -24,6 +24,7 @@ func init() {
types.AllowUserExec = append(types.AllowUserExec, []byte(UnfreezeX)) types.AllowUserExec = append(types.AllowUserExec, []byte(UnfreezeX))
// init executor type // init executor type
types.RegistorExecutor(name, NewType()) types.RegistorExecutor(name, NewType())
types.RegisterDappFork(name, "Enable", 0)
} }
//getRealExecName //getRealExecName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment