mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
784bc9dc85
* Fixes issue #1139 - crash when running chaindata mode * Cleaning up error messages as per feedback
50 lines
1.6 KiB
Go
50 lines
1.6 KiB
Go
package commands
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/ledgerwatch/turbo-geth/common"
|
|
"github.com/ledgerwatch/turbo-geth/core/types"
|
|
"github.com/ledgerwatch/turbo-geth/rpc"
|
|
)
|
|
|
|
// CallParam a parameter for a trace_callMany routine
|
|
type CallParam struct {
|
|
_ types.Transaction
|
|
_ []string
|
|
}
|
|
|
|
// CallParams array of callMany structs
|
|
type CallParams []CallParam
|
|
|
|
// Call Implements trace_call
|
|
func (api *TraceAPIImpl) Call(ctx context.Context, call CallParam, blockNr rpc.BlockNumber) ([]interface{}, error) {
|
|
var stub []interface{}
|
|
return stub, fmt.Errorf(NotImplemented, "trace_call")
|
|
}
|
|
|
|
// CallMany Implements trace_call
|
|
func (api *TraceAPIImpl) CallMany(ctx context.Context, calls CallParams) ([]interface{}, error) {
|
|
var stub []interface{}
|
|
return stub, fmt.Errorf(NotImplemented, "trace_callMany")
|
|
}
|
|
|
|
// RawTransaction Implements trace_rawtransaction
|
|
func (api *TraceAPIImpl) RawTransaction(ctx context.Context, txHash common.Hash, traceTypes []string) ([]interface{}, error) {
|
|
var stub []interface{}
|
|
return stub, fmt.Errorf(NotImplemented, "trace_rawTransaction")
|
|
}
|
|
|
|
// ReplayBlockTransactions Implements trace_replayBlockTransactions
|
|
func (api *TraceAPIImpl) ReplayBlockTransactions(ctx context.Context, blockNr rpc.BlockNumber, traceTypes []string) ([]interface{}, error) {
|
|
var stub []interface{}
|
|
return stub, fmt.Errorf(NotImplemented, "trace_replayBlockTransactions")
|
|
}
|
|
|
|
// ReplayTransaction Implements trace_replaytransactions
|
|
func (api *TraceAPIImpl) ReplayTransaction(ctx context.Context, txHash common.Hash, traceTypes []string) ([]interface{}, error) {
|
|
var stub []interface{}
|
|
return stub, fmt.Errorf(NotImplemented, "trace_replayTransaction")
|
|
}
|