From d6b1450b7862e6a58cc1f8bed30742a85914029b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Tue, 26 Mar 2024 11:57:41 -0400 Subject: [PATCH] add missing wasm extensions on tier2 --- cmd/apps/substreams_tier2.go | 6 ++++++ go.mod | 4 +--- go.sum | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cmd/apps/substreams_tier2.go b/cmd/apps/substreams_tier2.go index f75ef67..11de15e 100644 --- a/cmd/apps/substreams_tier2.go +++ b/cmd/apps/substreams_tier2.go @@ -69,12 +69,18 @@ func RegisterSubstreamsTier2App[B firecore.Block](chain *firecore.Chain[B], root } } + wasmExtensions, err := chain.RegisterSubstreamsExtensions() + if err != nil { + return nil, fmt.Errorf("substreams extensions: %w", err) + } + return app.NewTier2(appLogger, &app.Tier2Config{ Tracing: tracing, GRPCListenAddr: grpcListenAddr, ServiceDiscoveryURL: serviceDiscoveryURL, + WASMExtensions: wasmExtensions, MaximumConcurrentRequests: maximumConcurrentRequests, }, &app.Tier2Modules{ diff --git a/go.mod b/go.mod index 0820f11..e33d595 100644 --- a/go.mod +++ b/go.mod @@ -2,8 +2,6 @@ module github.com/streamingfast/firehose-core go 1.22 -replace github.com/streamingfast/substreams => github.com/streamingfast/substreams v1.4.1-0.20240326144332-9f8e91e85d39 - require ( buf.build/gen/go/bufbuild/reflect/connectrpc/go v1.12.0-20230822193137-310c9c4845dd.1 buf.build/gen/go/bufbuild/reflect/protocolbuffers/go v1.31.0-20230822193137-310c9c4845dd.2 @@ -32,7 +30,7 @@ require ( github.com/streamingfast/logging v0.0.0-20230608130331-f22c91403091 github.com/streamingfast/pbgo v0.0.6-0.20240131193313-6b88bc7139db github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0 - github.com/streamingfast/substreams v1.4.1-0.20240326143310-a4878081f44c + github.com/streamingfast/substreams v1.4.1-0.20240326155609-e3ba0b840b6b github.com/stretchr/testify v1.8.4 github.com/test-go/testify v1.1.4 go.uber.org/multierr v1.10.0 diff --git a/go.sum b/go.sum index 155c057..b6c23ab 100644 --- a/go.sum +++ b/go.sum @@ -625,8 +625,8 @@ github.com/streamingfast/shutter v1.5.0 h1:NpzDYzj0HVpSiDJVO/FFSL6QIK/YKOxY0gJAt github.com/streamingfast/shutter v1.5.0/go.mod h1:B/T6efqdeMGbGwjzPS1ToXzYZI4kDzI5/u4I+7qbjY8= github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0 h1:Y15G1Z4fpEdm2b+/70owI7TLuXadlqBtGM7rk4Hxrzk= github.com/streamingfast/snapshotter v0.0.0-20230316190750-5bcadfde44d0/go.mod h1:/Rnz2TJvaShjUct0scZ9kKV2Jr9/+KBAoWy4UMYxgv4= -github.com/streamingfast/substreams v1.4.1-0.20240326144332-9f8e91e85d39 h1:pIcLENGVftM7G7KZ+dH/fIZGJ/fLDiSKn4mmS34u9jw= -github.com/streamingfast/substreams v1.4.1-0.20240326144332-9f8e91e85d39/go.mod h1:tS03mbQ14PcuqmQCKvj82yENHaMl2xKxUBvWHJT06QQ= +github.com/streamingfast/substreams v1.4.1-0.20240326155609-e3ba0b840b6b h1:eQ2OQI6AuIrV9xg6b2GWseBhPT5BVemoXwDFujAilZc= +github.com/streamingfast/substreams v1.4.1-0.20240326155609-e3ba0b840b6b/go.mod h1:tS03mbQ14PcuqmQCKvj82yENHaMl2xKxUBvWHJT06QQ= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=