Dynamic Benchmarking DB Whitelist (#6815)

* Add `get_whitelist` api

* add whitelisted caller

* Whitelist caller

* remove caller 0

* initial piping of origin (not actual value yet)

* remove attempt to pass origin around

* Add whitelist for `DidUpdate` storage on `pallet_timestamp`

* fix traits

* only add to whitelist if !contains

* PassBy not implemented error

* Whitelist read/writes explicitly per key

* update docs

* reduce trait constraint

* copy pasta

* Apply suggestions from code review

Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* rename functions @apopiak

* missed some renaming

* enable doc tests

* Update docs

Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
This commit is contained in:
Shawn Tabrizi
2020-08-19 18:15:50 +02:00
committed by GitHub
parent 8b5ced7fa7
commit 481ad884d6
26 changed files with 421 additions and 205 deletions
+4
View File
@@ -1559,6 +1559,7 @@ version = "2.0.0-rc5"
dependencies = [
"frame-support",
"frame-system",
"hex-literal",
"linregress",
"parity-scale-codec",
"paste",
@@ -1567,6 +1568,7 @@ dependencies = [
"sp-runtime",
"sp-runtime-interface",
"sp-std",
"sp-storage",
]
[[package]]
@@ -8047,6 +8049,7 @@ dependencies = [
"sp-runtime-interface-test-wasm",
"sp-state-machine",
"sp-std",
"sp-storage",
"sp-tracing",
"sp-wasm-interface",
"static_assertions",
@@ -8176,6 +8179,7 @@ name = "sp-storage"
version = "2.0.0-rc5"
dependencies = [
"impl-serde 0.2.3",
"parity-scale-codec",
"ref-cast",
"serde",
"sp-debug-derive",