Skip to content

Commit

Permalink
Fix: security (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Jan 12, 2022
1 parent a9207ec commit e23537b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 197 deletions.
1 change: 0 additions & 1 deletion configs/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ rpc:
mainnet:
uri: https://rpc.tzkt.io/mainnet
timeout: 20
# cache: /etc/bcd
granadanet:
uri: https://rpc.tzkt.io/granadanet
timeout: 20
Expand Down
16 changes: 4 additions & 12 deletions internal/config/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,10 @@ func WithRPC(rpcConfig map[string]RPCConfig) ContextOption {
rpc := make(map[types.Network]noderpc.INode)
for name, rpcProvider := range rpcConfig {
network := types.NewNetwork(name)
if rpcProvider.Cache != "" {
rpc[network] = noderpc.NewFS(
rpcProvider.URI,
rpcProvider.Cache,
name,
)
} else {
rpc[network] = noderpc.NewPool(
[]string{rpcProvider.URI},
noderpc.WithTimeout(time.Second*time.Duration(rpcProvider.Timeout)),
)
}
rpc[network] = noderpc.NewPool(
[]string{rpcProvider.URI},
noderpc.WithTimeout(time.Second*time.Duration(rpcProvider.Timeout)),
)
}
ctx.RPC = rpc
}
Expand Down
46 changes: 0 additions & 46 deletions internal/noderpc/fs.go

This file was deleted.

138 changes: 0 additions & 138 deletions scripts/node_cache/main.go

This file was deleted.

0 comments on commit e23537b

Please sign in to comment.