Skip to content

Commit

Permalink
introduce messenger and toEngine channel (#15)
Browse files Browse the repository at this point in the history
* introduce messenger and toEngine channel

* get rid of avalanchego libs, add toEngine

* get rid of grpcutils

* regenerate proto files with buf 1.31.0

* close goroutine that listen toEngine

* add transport credentials

* add http import

* use mock for gRPC client connection for unit tests

* mempool handler: trigger `toEngine` channel when transaction appear in mempool

* fix static check error: should use for range instead of for { select {} } (S1000)
dominikh/go-tools#503 (comment)

---------

Co-authored-by: Ivan Sukach <[email protected]>
Co-authored-by: ramil <[email protected]>
  • Loading branch information
3 people authored May 2, 2024
1 parent f53fae4 commit 0f265e6
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 17 deletions.
265 changes: 265 additions & 0 deletions proto/messenger/messenger.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions proto/messenger/messenger.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
syntax = "proto3";

package messenger;

option go_package = "github.com/consideritdone/landslidevm/proto/messenger";

service Messenger {
rpc Notify(NotifyRequest) returns (NotifyResponse);
}

enum Message {
MESSAGE_UNSPECIFIED = 0;
MESSAGE_BUILD_BLOCK = 1;
MESSAGE_STATE_SYNC_FINISHED = 2;
}

message NotifyRequest {
Message message = 1;
}

message NotifyResponse {}
107 changes: 107 additions & 0 deletions proto/messenger/messenger_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0f265e6

Please sign in to comment.