mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
8a877c227a
* Expose C Handle of lmdbTx * LoadExecutionFunctionPointer * silkworm ExecuteBlocks * linter * CLI flag for SilkwormExecutionFunc * linter * Call SilkwormExecutionFunc in SpawnExecuteBlocksStage * Commit transaction after Silkworm execution * Fix batch initialization * Make batch_size uint64_t instead of size_t * max_block in silkworm_execute_blocks * More accurate logProgress * Use CHandle exposed by lmdb-go * Enable Silkworm on Linux only * Update lmdb-go * Error when attempting to use Silkworm not on Linux * Move SilkwormFlag from cmd/utils/flags.go to turbo/cli/flags.go * Integrate Silkworm into cmd/integration * Check against ReaderBuilder/WriterBuilder/ChangeSetHook in Silkworm execution * Refactor SpawnExecuteBlocksStage * linters * Small clean-ups * Move ChangeSetHook inside executeBlockWithGo * No need to tamper with batch size in executeBlocksWithSilkworm * fix * Fix * Fixup Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
14 lines
259 B
Go
14 lines
259 B
Go
// +build !linux
|
|
|
|
package silkworm
|
|
|
|
import (
|
|
"errors"
|
|
"unsafe"
|
|
)
|
|
|
|
func LoadExecutionFunctionPointer(dllPath string) (unsafe.Pointer, error) {
|
|
// See https://github.com/golang/go/issues/28024
|
|
return nil, errors.New("Silkworm is only supported on Linux")
|
|
}
|