Add dev_getBlockStats RPC (#10939)

* Add chain_getBlockStats rpc

* Fix broken doc link

* Apply suggestions from code review

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* fmt

* Fix compilation

* Move Blockstats

* Apply suggestions from code review

Co-authored-by: David <dvdplm@gmail.com>

* fmt

Co-authored-by: ascjones <ascjones@gmail.com>
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
authored and GitHub committed 2022-03-22 08:23:47 +00:00
1 parent be11700658
commit be6b6adbb4
9 files changed
+319 -3

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ log = "0.4.8"
parking_lot = "0.12.0"
thiserror = "1.0"
scale-info = { version = "2.0.1", default-features = false, features = ["derive"] }
sp-core = { version = "6.0.0", path = "../../primitives/core" }
sp-version = { version = "5.0.0", path = "../../primitives/version" }
sp-runtime = { version = "6.0.0", path = "../../primitives/runtime" }