Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

RPC: Block number to block hash #584

Merged
merged 5 commits into from
Aug 25, 2018
Merged

RPC: Block number to block hash #584

merged 5 commits into from
Aug 25, 2018

Conversation

tomusdrw
Copy link
Contributor

Also changed other chain_ methods to have optional hash parameter (by default they return latest header/block/hash).
This caused chain_getHead method to become equivalent with chain_blockHash method, so I made it an alias for now.

@tomusdrw tomusdrw added A0-please_review Pull request needs code review. M6-rpcapi labels Aug 17, 2018
gavofyork
gavofyork previously approved these changes Aug 20, 2018
@gavofyork gavofyork added A8-looksgood and removed A0-please_review Pull request needs code review. A8-looksgood labels Aug 20, 2018
gavofyork
gavofyork previously approved these changes Aug 20, 2018
@@ -40,20 +40,22 @@ use self::error::Result;

build_rpc_trait! {
/// Polkadot blockchain API
pub trait ChainApi<Hash, Header, Extrinsic> {
pub trait ChainApi<Hash, Header, Number, Extrinsic> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use Header::Number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't specify bounds in build_rpc_trait macro.

@tomusdrw tomusdrw added A0-please_review Pull request needs code review. and removed A5-grumble labels Aug 23, 2018
@arkpar arkpar added A8-looksgood and removed A0-please_review Pull request needs code review. labels Aug 23, 2018
@gavofyork gavofyork merged commit a0daabe into master Aug 25, 2018
@gavofyork gavofyork deleted the td-blocknumber branch August 25, 2018 12:11
dvdplm added a commit that referenced this pull request Aug 27, 2018
…and-rlpcodec

* master:
  Contract signatures checking (#478)
  extrinsic-pool: use retain() (#613)
  rename Polkadot to Substrate in the license header via following four commands (#614)
  typo fixes (#608)
  RPC: Block number to block hash (#584)
  Minor fixes for nightly 2018-08-18 (#600)
  Time-based transaction banning (#594) (#602)
  cargo --force to allow CI to build. (#599)
  Fix logging (#587)
  Fix runtime version cache (#586)
liuchengxu pushed a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
reject more than 1/3, related to https://github.com/chainpool/ChainX/issues/571
all tx inputs sig count should same
apply_create_withdraw support check sign same time
fix https://github.com/chainpool/ChainX/issues/570
fix https://github.com/chainpool/ChainX/issues/546
fix https://github.com/chainpool/ChainX/issues/578
fix std print addr in runtime
fix withdraw list tx state
fix https://github.com/chainpool/ChainX/issues/575
liuchengxu added a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants