Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
polkadot-sdk
Commits
43d99bf2
Commit
43d99bf2
authored
4 years ago
by
Xiliang Chen
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix build (#1260)
parent
825b4b4b
Branches
gh-readonly-queue/master/pr-3955-9b378a2ffef1d5846872adc4336341805bffbc30
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
polkadot/Cargo.lock
+1
-0
1 addition, 0 deletions
polkadot/Cargo.lock
polkadot/rpc/Cargo.toml
+1
-0
1 addition, 0 deletions
polkadot/rpc/Cargo.toml
polkadot/rpc/src/lib.rs
+4
-2
4 additions, 2 deletions
polkadot/rpc/src/lib.rs
with
6 additions
and
2 deletions
polkadot/Cargo.lock
+
1
−
0
View file @
43d99bf2
...
...
@@ -4353,6 +4353,7 @@ dependencies = [
"sc-keystore",
"sc-rpc",
"sp-api",
"sp-block-builder",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
...
...
This diff is collapsed.
Click to expand it.
polkadot/rpc/Cargo.toml
+
1
−
0
View file @
43d99bf2
...
...
@@ -24,3 +24,4 @@ txpool-api = { package = "sp-transaction-pool", git = "https://github.com/parity
frame-rpc-system
=
{
package
=
"substrate-frame-rpc-system"
,
git
=
"https://github.com/paritytech/substrate"
,
branch
=
"master"
}
pallet-transaction-payment-rpc
=
{
git
=
"https://github.com/paritytech/substrate"
,
branch
=
"master"
}
codec
=
{
package
=
"parity-scale-codec"
,
version
=
"1.3.0"
,
default-features
=
false
}
sp-block-builder
=
{
git
=
"https://github.com/paritytech/substrate"
,
branch
=
"master"
}
This diff is collapsed.
Click to expand it.
polkadot/rpc/src/lib.rs
+
4
−
2
View file @
43d99bf2
...
...
@@ -29,6 +29,7 @@ use sp_consensus_babe::BabeApi;
use
sc_client_api
::
light
::{
Fetcher
,
RemoteBlockchain
};
use
sc_consensus_babe
::
Epoch
;
use
sc_rpc
::
DenyUnsafe
;
use
sp_block_builder
::
BlockBuilder
;
/// A type representing all RPC extensions.
pub
type
RpcExtension
=
jsonrpc_core
::
IoHandler
<
sc_rpc
::
Metadata
>
;
...
...
@@ -87,6 +88,7 @@ pub fn create_full<C, P, UE, SC>(deps: FullDeps<C, P, SC>) -> RpcExtension where
C
::
Api
:
frame_rpc_system
::
AccountNonceApi
<
Block
,
AccountId
,
Nonce
>
,
C
::
Api
:
pallet_transaction_payment_rpc
::
TransactionPaymentRuntimeApi
<
Block
,
Balance
,
UE
>
,
C
::
Api
:
BabeApi
<
Block
>
,
C
::
Api
:
BlockBuilder
<
Block
>
,
P
:
TransactionPool
+
Sync
+
Send
+
'static
,
UE
:
codec
::
Codec
+
Send
+
Sync
+
'static
,
SC
:
SelectChain
<
Block
>
+
'static
,
...
...
@@ -116,7 +118,7 @@ pub fn create_full<C, P, UE, SC>(deps: FullDeps<C, P, SC>) -> RpcExtension where
}
=
grandpa
;
io
.extend_with
(
SystemApi
::
to_delegate
(
FullSystem
::
new
(
client
.clone
(),
pool
))
SystemApi
::
to_delegate
(
FullSystem
::
new
(
client
.clone
(),
pool
,
deny_unsafe
))
);
io
.extend_with
(
TransactionPaymentApi
::
to_delegate
(
TransactionPayment
::
new
(
client
.clone
()))
...
...
@@ -164,7 +166,7 @@ pub fn create_light<C, P, F, UE>(deps: LightDeps<C, F, P>) -> RpcExtension
}
=
deps
;
let
mut
io
=
jsonrpc_core
::
IoHandler
::
default
();
io
.extend_with
(
SystemApi
::
<
AccountId
,
Nonce
>
::
to_delegate
(
LightSystem
::
new
(
client
,
remote_blockchain
,
fetcher
,
pool
))
SystemApi
::
<
Hash
,
AccountId
,
Nonce
>
::
to_delegate
(
LightSystem
::
new
(
client
,
remote_blockchain
,
fetcher
,
pool
))
);
io
}
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment