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
99bbf74d
Commit
99bbf74d
authored
Aug 12, 2020
by
Cecile Tonglet
Browse files
WIP
Forked at:
e9164236
Parent branch: origin/rococo-branch
parent
f60375c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
collator/src/lib.rs
View file @
99bbf74d
...
...
@@ -118,7 +118,7 @@ pub trait BuildParachainContext {
type
ParachainContext
:
self
::
ParachainContext
;
/// Build the `ParachainContext`.
fn
build
<
SP
,
Client
,
Block
,
Backend
>
(
fn
build
<
SP
,
Client
,
Backend
>
(
self
,
client
:
Arc
<
Client
>
,
spawner
:
SP
,
...
...
@@ -126,7 +126,6 @@ pub trait BuildParachainContext {
)
->
Result
<
Self
::
ParachainContext
,
()
>
where
SP
:
SpawnNamed
+
Clone
+
Send
+
Sync
+
'static
,
Block
:
BlockT
,
Backend
:
BackendT
<
Block
>
,
Backend
::
State
:
sp_api
::
StateBackend
<
BlakeTwo256
>
,
Client
:
polkadot_service
::
AbstractClient
<
Block
,
Backend
>
,
...
...
node/test-service/src/lib.rs
View file @
99bbf74d
...
...
@@ -95,6 +95,7 @@ pub struct TestClient(Arc<FullClient<polkadot_test_runtime::RuntimeApi, Polkadot
// TODO: that comes from service, make it public?
type
FullBackend
=
service
::
TFullBackend
<
Block
>
;
// TODO: maybe implementable for any Arc<TFullClient<...>>?
impl
YaExecuteWithClient
for
TestClient
{
fn
execute_with
<
T
:
ExecuteWithClient
>
(
&
self
,
t
:
T
)
->
T
::
Output
{
T
::
execute_with_client
::
<
_
,
_
,
FullBackend
>
(
t
,
self
.0
.clone
())
...
...
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