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

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
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
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.

4 participants