erigon-pulse/turbo/silkworm/load.go
canepat 47690db676
Block execution using embedded Silkworm (#8353)
This introduces _experimental_ block execution run by embedded Silkworm
API library:

- new command-line option `silkworm.path` to enable the feature by
specifying the path to the Silkworm library
- the Silkworm API shared library is dynamically loaded on-demand
- currently requires to build Silkworm library on the target machine
- available only on Linux at the moment: macOS has issue with [stack
size](https://github.com/golang/go/issues/28024) and Windows would
require [TDM-GCC-64](https://jmeubank.github.io/tdm-gcc/), both need
dedicated effort for an assessment
2023-10-05 09:27:37 +07:00

20 lines
463 B
Go

//go:build !linux
// +build !linux
package silkworm
import (
"errors"
"unsafe"
)
func OpenLibrary(dllPath string) (unsafe.Pointer, error) {
// See https://github.com/golang/go/issues/28024
return nil, errors.New("Silkworm is only supported on Linux")
}
func LoadFunction(dllHandle unsafe.Pointer, funcName string) (unsafe.Pointer, error) {
// See https://github.com/golang/go/issues/28024
return nil, errors.New("Silkworm is only supported on Linux")
}