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:
Alexander Theißen
2022-03-22 09:23:47 +01:00
committed by GitHub
parent be11700658
commit be6b6adbb4
9 changed files with 319 additions and 3 deletions
+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" }