Generic authorship and uncle inclusion module (#2941)

* generalized uncle processing

* add some uncle tests

* set author and do event handling

* OnePerAuthorPerHeight no longer O(n^2) and test

* bump impl_version of node

* Documentation and style fixes

Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com>

* fix #2949: index-based FindAuthor wrapper for srml-session

* use for_each_tuple
This commit is contained in:
Robert Habermeier
2019-06-26 12:24:58 +02:00
committed by GitHub
parent 050377d1c0
commit 0ddf4a2a00
9 changed files with 705 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
[package]
name = "srml-authorship"
version = "0.1.0"
description = "Block and Uncle Author tracking for the SRML"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
substrate-primitives = { path = "../../core/primitives", default-features = false }
parity-codec = { version = "3.3", default-features = false, features = ["derive"] }
rstd = { package = "sr-std", path = "../../core/sr-std", default-features = false }
primitives = { package = "sr-primitives", path = "../../core/sr-primitives", default-features = false }
srml-support = { path = "../support", default-features = false }
system = { package = "srml-system", path = "../system", default-features = false }
runtime_io = { package = "sr-io", path = "../../core/sr-io", default-features = false }
[features]
default = ["std"]
std = [
"parity-codec/std",
"substrate-primitives/std",
"rstd/std",
"srml-support/std",
"primitives/std",
"system/std",
"runtime_io/std",
]