Skip to content

Commit

Permalink
Use remote proto
Browse files Browse the repository at this point in the history
  • Loading branch information
shohamc1 committed Sep 10, 2024
1 parent b5f9c1e commit 4e8fe9e
Show file tree
Hide file tree
Showing 13 changed files with 641 additions and 623 deletions.
4 changes: 2 additions & 2 deletions erigon-lib/direct/bridge_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ func NewBridgeClientDirect(server remote.BridgeBackendServer) *BridgeClientDirec
return &BridgeClientDirect{server: server}
}

func (b *BridgeClientDirect) BorTxnLookup(ctx context.Context, in *types.BorTxnLookupRequest, opts ...grpc.CallOption) (*types.BorTxnLookupReply, error) {
func (b *BridgeClientDirect) BorTxnLookup(ctx context.Context, in *remote.BorTxnLookupRequest, opts ...grpc.CallOption) (*remote.BorTxnLookupReply, error) {
return b.server.BorTxnLookup(ctx, in)
}

func (b *BridgeClientDirect) BorEvents(ctx context.Context, in *types.BorEventsRequest, opts ...grpc.CallOption) (*types.BorEventsReply, error) {
func (b *BridgeClientDirect) BorEvents(ctx context.Context, in *remote.BorEventsRequest, opts ...grpc.CallOption) (*remote.BorEventsReply, error) {
return b.server.BorEvents(ctx, in)
}

Expand Down
4 changes: 2 additions & 2 deletions erigon-lib/direct/eth_backend_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ func (s *EthBackendClientDirect) PendingBlock(ctx context.Context, in *emptypb.E
return s.server.PendingBlock(ctx, in)
}

func (s *EthBackendClientDirect) BorTxnLookup(ctx context.Context, in *types.BorTxnLookupRequest, opts ...grpc.CallOption) (*types.BorTxnLookupReply, error) {
func (s *EthBackendClientDirect) BorTxnLookup(ctx context.Context, in *remote.BorTxnLookupRequest, opts ...grpc.CallOption) (*remote.BorTxnLookupReply, error) {
return s.server.BorTxnLookup(ctx, in)
}

func (s *EthBackendClientDirect) BorEvents(ctx context.Context, in *types.BorEventsRequest, opts ...grpc.CallOption) (*types.BorEventsReply, error) {
func (s *EthBackendClientDirect) BorEvents(ctx context.Context, in *remote.BorEventsRequest, opts ...grpc.CallOption) (*remote.BorEventsReply, error) {
return s.server.BorEvents(ctx, in)
}
2 changes: 1 addition & 1 deletion erigon-lib/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22

require (
github.com/erigontech/erigon-snapshot v1.3.1-0.20240814160410-2ce37904b978
github.com/erigontech/interfaces v0.0.0-20240910073022-0cbaf19b8011
github.com/erigontech/interfaces v0.0.0-20240910090747-a555dfbf07fd
github.com/erigontech/mdbx-go v0.38.4
github.com/erigontech/secp256k1 v1.1.0
github.com/rs/dnscache v0.0.0-20211102005908-e0241e321417
Expand Down
4 changes: 4 additions & 0 deletions erigon-lib/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ github.com/erigontech/erigon-snapshot v1.3.1-0.20240814160410-2ce37904b978 h1:7E
github.com/erigontech/erigon-snapshot v1.3.1-0.20240814160410-2ce37904b978/go.mod h1:ooHlCl+eEYzebiPu+FP6Q6SpPUeMADn8Jxabv3IKb9M=
github.com/erigontech/interfaces v0.0.0-20240910073022-0cbaf19b8011 h1:UV2RydA+1HEbWjHl5SYNFBN9a3B0z8ele+hLrwGT91I=
github.com/erigontech/interfaces v0.0.0-20240910073022-0cbaf19b8011/go.mod h1:N7OUkhkcagp9+7yb4ycHsG2VWCOmuJ1ONBecJshxtLE=
github.com/erigontech/interfaces v0.0.0-20240910081700-77642a334c8a h1:OC4PexyX/PnDHl1R2YmURt7qCQjuB2VKhefokw2/Gy4=
github.com/erigontech/interfaces v0.0.0-20240910081700-77642a334c8a/go.mod h1:N7OUkhkcagp9+7yb4ycHsG2VWCOmuJ1ONBecJshxtLE=
github.com/erigontech/interfaces v0.0.0-20240910090747-a555dfbf07fd h1:ViHvsOZVwsasikN/IM8mXmx/xYNG/qzdSkEqZ0TTQW0=
github.com/erigontech/interfaces v0.0.0-20240910090747-a555dfbf07fd/go.mod h1:N7OUkhkcagp9+7yb4ycHsG2VWCOmuJ1ONBecJshxtLE=
github.com/erigontech/mdbx-go v0.38.4 h1:S9T7mTe9KPcFe4dOoOtVdI6gPzht9y7wMnYfUBgrQLo=
github.com/erigontech/mdbx-go v0.38.4/go.mod h1:IcOLQDPw3VM/asP6T5JVPPN4FHHgJtY16XfYjzWKVNI=
github.com/erigontech/secp256k1 v1.1.0 h1:mO3YJMUSoASE15Ya//SoHiisptUhdXExuMUN1M0X9qY=
Expand Down
Loading

0 comments on commit 4e8fe9e

Please sign in to comment.