Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion internal/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,16 @@ func Initialize() (IRPCClient, error) {
return nil, fmt.Errorf("RPC_URL environment variable is not set")
}
log.Debug().Msg("Initializing RPC")
rpcClient, dialErr := gethRpc.Dial(rpcUrl)

ctx := context.Background()

// Initialize RPC client with custom header to disable insight RPC tracking
rpcClient, dialErr := gethRpc.DialOptions(
ctx,
rpcUrl,
gethRpc.WithHeader("x-disable-insight-rpc", "true"),
)

if dialErr != nil {
return nil, dialErr
}
Expand Down
Loading