mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-11 04:11:21 +00:00
go-p2p -> tendermint/p2p
This commit is contained in:
@ -54,7 +54,7 @@ Yay open source! Please see our [contributing guidelines](https://tendermint.com
|
|||||||
* [ABCI](http://github.com/tendermint/abci)
|
* [ABCI](http://github.com/tendermint/abci)
|
||||||
* [Mintnet](http://github.com/tendermint/mintnet)
|
* [Mintnet](http://github.com/tendermint/mintnet)
|
||||||
* [Go-Wire](http://github.com/tendermint/go-wire)
|
* [Go-Wire](http://github.com/tendermint/go-wire)
|
||||||
* [Go-P2P](http://github.com/tendermint/go-p2p)
|
* [Go-P2P](http://github.com/tendermint/tendermint/p2p)
|
||||||
* [Go-Merkle](http://github.com/tendermint/go-merkle)
|
* [Go-Merkle](http://github.com/tendermint/go-merkle)
|
||||||
|
|
||||||
### Applications
|
### Applications
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/tendermint/go-crypto"
|
"github.com/tendermint/go-crypto"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/go-wire"
|
"github.com/tendermint/go-wire"
|
||||||
proto "github.com/tendermint/tendermint/benchmarks/proto"
|
proto "github.com/tendermint/tendermint/benchmarks/proto"
|
||||||
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
|
ctypes "github.com/tendermint/tendermint/rpc/tendermint/core/types"
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
cmn "github.com/tendermint/tmlibs/common"
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
cfg "github.com/tendermint/go-config"
|
cfg "github.com/tendermint/go-config"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/go-wire"
|
"github.com/tendermint/go-wire"
|
||||||
"github.com/tendermint/tendermint/proxy"
|
"github.com/tendermint/tendermint/proxy"
|
||||||
sm "github.com/tendermint/tendermint/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/tendermint/go-p2p/upnp"
|
"github.com/tendermint/tendermint/p2p/upnp"
|
||||||
)
|
)
|
||||||
|
|
||||||
var probeUpnpCmd = &cobra.Command{
|
var probeUpnpCmd = &cobra.Command{
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
. "github.com/tendermint/tmlibs/common"
|
. "github.com/tendermint/tmlibs/common"
|
||||||
cfg "github.com/tendermint/go-config"
|
cfg "github.com/tendermint/go-config"
|
||||||
"github.com/tendermint/tmlibs/events"
|
"github.com/tendermint/tmlibs/events"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
. "github.com/tendermint/tmlibs/common"
|
. "github.com/tendermint/tmlibs/common"
|
||||||
cfg "github.com/tendermint/go-config"
|
cfg "github.com/tendermint/go-config"
|
||||||
dbm "github.com/tendermint/tmlibs/db"
|
dbm "github.com/tendermint/tmlibs/db"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
bc "github.com/tendermint/tendermint/blockchain"
|
bc "github.com/tendermint/tendermint/blockchain"
|
||||||
"github.com/tendermint/tendermint/config/tendermint_test"
|
"github.com/tendermint/tendermint/config/tendermint_test"
|
||||||
mempl "github.com/tendermint/tendermint/mempool"
|
mempl "github.com/tendermint/tendermint/mempool"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tmlibs/common"
|
. "github.com/tendermint/tmlibs/common"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/go-wire"
|
"github.com/tendermint/go-wire"
|
||||||
sm "github.com/tendermint/tendermint/state"
|
sm "github.com/tendermint/tendermint/state"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/tendermint/tendermint/config/tendermint_test"
|
"github.com/tendermint/tendermint/config/tendermint_test"
|
||||||
|
|
||||||
"github.com/tendermint/tmlibs/events"
|
"github.com/tendermint/tmlibs/events"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
"github.com/tendermint/abci/example/dummy"
|
"github.com/tendermint/abci/example/dummy"
|
||||||
)
|
)
|
||||||
|
2
glide.lock
generated
2
glide.lock
generated
@ -104,7 +104,7 @@ imports:
|
|||||||
version: cefb3a45c0bf3c493a04e9bcd9b1540528be59f2
|
version: cefb3a45c0bf3c493a04e9bcd9b1540528be59f2
|
||||||
- name: github.com/tendermint/go-merkle
|
- name: github.com/tendermint/go-merkle
|
||||||
version: 714d4d04557fd068a7c2a1748241ce8428015a96
|
version: 714d4d04557fd068a7c2a1748241ce8428015a96
|
||||||
- name: github.com/tendermint/go-p2p
|
- name: github.com/tendermint/tendermint/p2p
|
||||||
version: b5f314ffed65c81bd019ba1dd2bae0e95f3937f3
|
version: b5f314ffed65c81bd019ba1dd2bae0e95f3937f3
|
||||||
subpackages:
|
subpackages:
|
||||||
- upnp
|
- upnp
|
||||||
|
@ -20,7 +20,7 @@ import:
|
|||||||
version: develop
|
version: develop
|
||||||
- package: github.com/tendermint/go-merkle
|
- package: github.com/tendermint/go-merkle
|
||||||
version: develop
|
version: develop
|
||||||
- package: github.com/tendermint/go-p2p
|
- package: github.com/tendermint/tendermint/p2p
|
||||||
version: unstable
|
version: unstable
|
||||||
- package: github.com/tendermint/tendermint/rpc
|
- package: github.com/tendermint/tendermint/rpc
|
||||||
version: develop
|
version: develop
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
abci "github.com/tendermint/abci/types"
|
abci "github.com/tendermint/abci/types"
|
||||||
"github.com/tendermint/tmlibs/clist"
|
"github.com/tendermint/tmlibs/clist"
|
||||||
cfg "github.com/tendermint/go-config"
|
cfg "github.com/tendermint/go-config"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/go-wire"
|
"github.com/tendermint/go-wire"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
)
|
)
|
||||||
|
@ -12,7 +12,7 @@ import (
|
|||||||
cfg "github.com/tendermint/go-config"
|
cfg "github.com/tendermint/go-config"
|
||||||
crypto "github.com/tendermint/go-crypto"
|
crypto "github.com/tendermint/go-crypto"
|
||||||
dbm "github.com/tendermint/tmlibs/db"
|
dbm "github.com/tendermint/tmlibs/db"
|
||||||
p2p "github.com/tendermint/go-p2p"
|
p2p "github.com/tendermint/tendermint/p2p"
|
||||||
rpc "github.com/tendermint/tendermint/rpc"
|
rpc "github.com/tendermint/tendermint/rpc"
|
||||||
rpcserver "github.com/tendermint/tendermint/rpc/server"
|
rpcserver "github.com/tendermint/tendermint/rpc/server"
|
||||||
wire "github.com/tendermint/go-wire"
|
wire "github.com/tendermint/go-wire"
|
||||||
|
@ -2,12 +2,12 @@ FROM golang:latest
|
|||||||
|
|
||||||
RUN curl https://glide.sh/get | sh
|
RUN curl https://glide.sh/get | sh
|
||||||
|
|
||||||
RUN mkdir -p /go/src/github.com/tendermint/go-p2p
|
RUN mkdir -p /go/src/github.com/tendermint/tendermint/p2p
|
||||||
WORKDIR /go/src/github.com/tendermint/go-p2p
|
WORKDIR /go/src/github.com/tendermint/tendermint/p2p
|
||||||
|
|
||||||
COPY glide.yaml /go/src/github.com/tendermint/go-p2p/
|
COPY glide.yaml /go/src/github.com/tendermint/tendermint/p2p/
|
||||||
COPY glide.lock /go/src/github.com/tendermint/go-p2p/
|
COPY glide.lock /go/src/github.com/tendermint/tendermint/p2p/
|
||||||
|
|
||||||
RUN glide install
|
RUN glide install
|
||||||
|
|
||||||
COPY . /go/src/github.com/tendermint/go-p2p
|
COPY . /go/src/github.com/tendermint/tendermint/p2p
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# `tendermint/go-p2p`
|
# `tendermint/tendermint/p2p`
|
||||||
|
|
||||||
[](https://circleci.com/gh/tendermint/go-p2p)
|
[](https://circleci.com/gh/tendermint/tendermint/p2p)
|
||||||
|
|
||||||
`tendermint/go-p2p` provides an abstraction around peer-to-peer communication.<br/>
|
`tendermint/tendermint/p2p` provides an abstraction around peer-to-peer communication.<br/>
|
||||||
|
|
||||||
## Peer/MConnection/Channel
|
## Peer/MConnection/Channel
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
p2p "github.com/tendermint/go-p2p"
|
p2p "github.com/tendermint/tendermint/p2p"
|
||||||
)
|
)
|
||||||
|
|
||||||
func createMConnection(conn net.Conn) *p2p.MConnection {
|
func createMConnection(conn net.Conn) *p2p.MConnection {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
. "github.com/tendermint/tmlibs/common"
|
. "github.com/tendermint/tmlibs/common"
|
||||||
"github.com/tendermint/go-p2p/upnp"
|
"github.com/tendermint/tendermint/p2p/upnp"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Listener interface {
|
type Listener interface {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
cfg "github.com/tendermint/go-config"
|
cfg "github.com/tendermint/go-config"
|
||||||
|
|
||||||
crypto "github.com/tendermint/go-crypto"
|
crypto "github.com/tendermint/go-crypto"
|
||||||
p2p "github.com/tendermint/go-p2p"
|
p2p "github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint/consensus"
|
"github.com/tendermint/tendermint/consensus"
|
||||||
"github.com/tendermint/tendermint/proxy"
|
"github.com/tendermint/tendermint/proxy"
|
||||||
"github.com/tendermint/tendermint/state/txindex"
|
"github.com/tendermint/tendermint/state/txindex"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
abci "github.com/tendermint/abci/types"
|
abci "github.com/tendermint/abci/types"
|
||||||
"github.com/tendermint/go-crypto"
|
"github.com/tendermint/go-crypto"
|
||||||
data "github.com/tendermint/go-wire/data"
|
data "github.com/tendermint/go-wire/data"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
"github.com/tendermint/tendermint/rpc/types"
|
"github.com/tendermint/tendermint/rpc/types"
|
||||||
"github.com/tendermint/go-wire"
|
"github.com/tendermint/go-wire"
|
||||||
"github.com/tendermint/tendermint/types"
|
"github.com/tendermint/tendermint/types"
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/tendermint/go-p2p"
|
"github.com/tendermint/tendermint/p2p"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStatusIndexer(t *testing.T) {
|
func TestStatusIndexer(t *testing.T) {
|
||||||
|
@ -14,7 +14,7 @@ fi
|
|||||||
|
|
||||||
# some libs are tested with go, others with make
|
# some libs are tested with go, others with make
|
||||||
# TODO: should be all make (post repo merge)
|
# TODO: should be all make (post repo merge)
|
||||||
LIBS_GO_TEST=(tmlibs/clist tmlibs/common go-config go-crypto tmlibs/db tmlibs/events go-merkle go-p2p)
|
LIBS_GO_TEST=(tmlibs/clist tmlibs/common go-config go-crypto tmlibs/db tmlibs/events go-merkle tendermint/p2p)
|
||||||
LIBS_MAKE_TEST=(tendermint/rpc go-wire abci)
|
LIBS_MAKE_TEST=(tendermint/rpc go-wire abci)
|
||||||
|
|
||||||
for lib in "${LIBS_GO_TEST[@]}"; do
|
for lib in "${LIBS_GO_TEST[@]}"; do
|
||||||
|
Reference in New Issue
Block a user