Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Merge requests
!105
Distance Oracle
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Distance Oracle
distance
into
master
Overview
66
Commits
15
Pipelines
76
Changes
19
Merged
Pascal Engélibert
requested to merge
distance
into
master
2 years ago
Overview
26
Commits
15
Pipelines
76
Changes
19
Expand
close
#10 (closed)
Edited
1 year ago
by
Pascal Engélibert
0
0
Merge request reports
Viewing commit
c093337c
Show latest version
19 files
+
803
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
19
Search (e.g. *.vue) (Ctrl+P)
c093337c
wip
· c093337c
Pascal Engélibert
authored
2 years ago
node/src/rpc.rs
+
4
−
0
Options
@@ -56,6 +56,7 @@ where
C
::
Api
:
substrate_frame_rpc_system
::
AccountNonceApi
<
Block
,
AccountId
,
Index
>
,
C
::
Api
:
pallet_transaction_payment_rpc
::
TransactionPaymentRuntimeApi
<
Block
,
Balance
>
,
C
::
Api
:
BlockBuilder
<
Block
>
,
//C::Api: pallet_distance_runtime_api::DistanceApi<Block>,
P
:
TransactionPool
+
'static
,
{
use
manual_seal
::
rpc
::{
ManualSeal
,
ManualSealApiServer
};
@@ -83,6 +84,9 @@ where
// `YourRpcStruct` should have a reference to a client, which is needed
// to call into the runtime.
// `module.merge(YourRpcTrait::into_rpc(YourRpcStruct::new(ReferenceToClient, ...)))?;`
/*module.merge(pallet_distance_rpc::DistanceApi::into_rpc(
pallet_distance_rpc::Distance::new(client),
))?;*/
Ok
(
module
)
}
Loading