Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
42ee7471
Unverified
Commit
42ee7471
authored
Apr 03, 2020
by
Pierre Krieger
Committed by
GitHub
Apr 03, 2020
Browse files
Don't depend directly on libp2p (#963)
* Don't depend directly on libp2p * Fix bad import
parent
d7abd17f
Pipeline
#86147
passed with stages
in 27 minutes and 3 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
42ee7471
...
...
@@ -4237,7 +4237,6 @@ version = "0.8.0"
dependencies = [
"env_logger 0.7.1",
"futures 0.3.4",
"libp2p",
"log 0.4.8",
"parking_lot 0.10.0",
"polkadot-test-runtime-client",
...
...
network/test/Cargo.toml
View file @
42ee7471
...
...
@@ -10,7 +10,6 @@ log = "0.4.8"
parking_lot
=
"0.10.0"
futures
=
"0.3.1"
rand
=
"0.7.2"
libp2p
=
{
version
=
"0.16.2"
,
default-features
=
false
,
features
=
["libp2p-websocket"]
}
sc-network
=
{
git
=
"https://github.com/paritytech/substrate"
,
branch
=
"master"
}
sc-network-test
=
{
git
=
"https://github.com/paritytech/substrate"
,
branch
=
"master"
}
sp-consensus
=
{
git
=
"https://github.com/paritytech/substrate"
,
branch
=
"master"
}
...
...
network/test/src/lib.rs
View file @
42ee7471
...
...
@@ -21,9 +21,8 @@ mod block_import;
use
std
::{
collections
::
HashMap
,
pin
::
Pin
,
sync
::
Arc
,
marker
::
PhantomData
,
task
::{
Poll
,
Context
as
FutureContext
}};
use
libp2p
::
build_multiaddr
;
use
log
::
trace
;
use
sc_network
::
config
::
FinalityProofProvider
;
use
sc_network
::
config
::
{
build_multiaddr
,
FinalityProofProvider
}
;
use
sp_blockchain
::{
Result
as
ClientResult
,
well_known_cache_keys
::{
self
,
Id
as
CacheKeyId
},
Info
as
BlockchainInfo
,
};
...
...
@@ -47,10 +46,9 @@ use sp_consensus::{BlockOrigin, BlockImportParams, BlockCheckParams, Justificati
use
futures
::
prelude
::
*
;
use
sc_network
::{
NetworkWorker
,
NetworkStateInfo
,
NetworkService
,
ReportHandle
,
config
::
ProtocolId
};
use
sc_network
::
config
::{
NetworkConfiguration
,
TransportConfig
,
BoxFinalityProofRequestBuilder
};
use
libp2p
::
PeerId
;
use
parking_lot
::
Mutex
;
use
sp_core
::
H256
;
use
sc_network
::
config
::{
ProtocolConfig
,
TransactionPool
};
use
sc_network
::
{
PeerId
,
config
::{
ProtocolConfig
,
TransactionPool
}
}
;
use
sp_runtime
::
generic
::
BlockId
;
use
sp_runtime
::
traits
::{
Block
as
BlockT
,
Header
as
HeaderT
,
NumberFor
};
use
sp_runtime
::
Justification
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment