ethresearch / sharding-p2p-poc

Proof of Concept of Ethereum Serenity Peer-to-Peer Layer on libp2p PubSub System
40 stars 19 forks source link

API for Python to interact with our p2p layer #16

Closed mhchia closed 6 years ago

mhchia commented 6 years ago

What is wrong?

We need a communication interface for the Python side to call.

How can it be fixed

mhchia commented 6 years ago

In https://github.com/ethresearch/sharding-p2p-poc/pull/54, we use gRPC to communicate between Python and Golang. IMO it is a bit wasting to use socket, instead of pipe or other ways, so gRPC should be a workaround for now. Need to investigate more on other approaches like pipe, since it seems not so trivial to move from gRPC to pipe.

mhchia commented 6 years ago

Refer to https://github.com/ethereum/py-evm/issues/930#issuecomment-420013619