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

Initial integration of Gilts pallet (Kusama) #2587

Merged
merged 62 commits into from May 11, 2021
Merged

Conversation

gavofyork
Copy link
Member

@gavofyork gavofyork commented Mar 9, 2021

Also bumps Substrate to use the latest Gilt pallet.

@gavofyork gavofyork added A3-in_progress Pull request is in progress. No review needed at this stage. B1-releasenotes C1-low PR touches the given topic and has a low impact on builders. labels Mar 9, 2021
@gavofyork
Copy link
Member Author

/benchmark runtime westend slots

@parity-benchapp
Copy link

parity-benchapp bot commented Mar 9, 2021

Finished benchmark for branch: gav-kusama-gilts

Benchmark: Benchmark Runtime Westend Pallet

cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=slots --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/

Results
Updating git repository `https://github.com/paritytech/substrate.git`

Compiling sp-std v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-consensus-slots v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling substrate-build-script-utils v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-debug-derive v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-support-procedural-tools-derive v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-serializer v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-chain-spec v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-api-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-npos-elections-compact v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-tracing-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-chain-spec-derive v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-staking-reward-curve v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-runtime-interface-proc-macro v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling jsonrpsee-proc-macros v0.2.0-alpha
Compiling sp-utils v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling jsonrpsee-types v0.2.0-alpha
Compiling polkadot-cli v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/cli)
Compiling frame-support-procedural-tools v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-storage v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-tracing v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-wasm-interface v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-arithmetic v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling fork-tree v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-panic-handler v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-network v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-authority-discovery v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-support-procedural v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-externalities v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling jsonrpc-client-transports v15.1.0
Compiling kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)
Compiling rococo-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/rococo)
Compiling polkadot-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/polkadot)
Compiling westend-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/westend)
Compiling jsonrpc-core-client v15.1.0
Compiling sp-runtime-interface v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling substrate-prometheus-endpoint v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling jsonrpsee-utils v0.2.0-alpha
Compiling sc-proposer-metrics v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-core v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling jsonrpsee-http-client v0.2.0-alpha
Compiling sp-database v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-peerset v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-telemetry v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-trie v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-keystore v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-inherents v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-metadata v13.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-allocator v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-rpc v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-npos-elections v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-tracing v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-state-machine v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-executor-common v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-election-providers v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-executor-wasmi v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-executor-wasmtime v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-io v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-application-crypto v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-tasks v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling remote-externalities v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-runtime v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-keystore v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-version v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-staking v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-consensus-slots v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-consensus-vrf v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-authorship v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-core-primitives v0.7.30 (/home/shawntabrizi/bench-bot/git/polkadot/core-primitives)
Compiling sp-keyring v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-rpc-server v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-api v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-support v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-consensus v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-executor v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-timestamp v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-block-builder v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-session v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-authority-discovery v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-finality-grandpa v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-offchain v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-system-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-parachain v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/parachain)
Compiling sp-blockchain v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-consensus-babe v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-system v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling xcm-executor v0.8.22 (/home/shawntabrizi/bench-bot/git/polkadot/xcm/xcm-executor)
Compiling frame-try-runtime v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sp-transaction-pool v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-benchmarking v3.1.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-primitives v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/primitives)
Compiling pallet-authorship v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-transaction-payment v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-executive v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-nicks v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-membership v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-randomness-collective-flip v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-society v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-recovery v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-sudo v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-gilt v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling xcm-builder v0.8.22 (/home/shawntabrizi/bench-bot/git/polkadot/xcm/xcm-builder)
Compiling sc-client-api v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-rpc-api v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-transaction-graph v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-timestamp v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-balances v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-vesting v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-indices v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-election-provider-multi-phase v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-proxy v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-utility v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-collective v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling frame-system-benchmarking v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-elections-phragmen v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-identity v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-democracy v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-multisig v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-scheduler v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-transaction-payment-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-im-online v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-statement-table v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/statement-table)
Compiling polkadot-erasure-coding v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/erasure-coding)
Compiling pallet-session v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-block-builder v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-consensus-epochs v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-consensus-uncles v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-consensus v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-state-db v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-light v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-transaction-pool v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling substrate-frame-rpc-system v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-offences v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-treasury v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-transaction-payment-rpc v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-node-primitives v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/primitives)
Compiling sc-rpc v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-basic-authorship v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-consensus-babe v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-client-db v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-bounties v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-tips v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-staking v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-authority-discovery v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-babe v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-grandpa v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-consensus-babe-rpc v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-network-gossip v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-node-jaeger v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/jaeger)
Compiling sc-offchain v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-informant v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-finality-grandpa v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-runtime-parachains v0.8.0 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/parachains)
Compiling pallet-offences-benchmarking v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling pallet-session-benchmarking v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-node-network-protocol v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/network/protocol)
Compiling sc-chain-spec v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-finality-grandpa-rpc v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-runtime-common v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/common)
Compiling polkadot-node-subsystem v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/subsystem)
Compiling sc-service v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-sync-state-rpc v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-node-subsystem-util v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/subsystem-util)
Compiling polkadot-rpc v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/rpc)
error: failed to run custom build command for kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)

Caused by:
process didn't exit successfully: /home/shawntabrizi/bench-bot/git/polkadot/target/release/build/kusama-runtime-08c242d0277c3d3d/build-script-build (exit code: 1)
--- stdout
�[1;33mInformation that should be included in a bug report.�[0m
�[1;33mExecuting build command:�[0m "rustup" "run" "nightly" "cargo" "-Zfeatures=build_dep" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/shawntabrizi/bench-bot/git/polkadot/target/release/wbuild/kusama-runtime/Cargo.toml" "--color=always" "--release"
�[1;33mUsing rustc version:�[0m rustc 1.52.0-nightly (07194ffcd 2021-02-10)

--- stderr
warning: flag -Z features has been stabilized in the 1.51 release, and is no longer necessary
The new feature resolver is now available by specifying resolver = "2" in Cargo.toml.
See https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2 for more information.

�[0m�[0m�[1m�[36m Blocking�[0m waiting for file lock on package cache
�[0m�[0m�[1m�[32m Compiling�[0m sp-std v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-debug-derive v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-support-procedural-tools-derive v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-runtime-interface-proc-macro v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-support-procedural-tools v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-api-proc-macro v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-npos-elections-compact v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-staking-reward-curve v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-support-procedural v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-tracing v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-wasm-interface v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-storage v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-arithmetic v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-runtime-interface v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-core v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-io v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-inherents v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-metadata v13.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-trie v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-npos-elections v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-application-crypto v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-election-providers v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-runtime v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-version v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-staking v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-authorship v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m polkadot-core-primitives v0.7.30 (/home/shawntabrizi/bench-bot/git/polkadot/core-primitives)
�[0m�[0m�[1m�[32m Compiling�[0m sp-consensus-vrf v0.9.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-consensus-slots v0.9.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-support v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m polkadot-parachain v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/parachain)
�[0m�[1m�[33mwarning�[0m�[0m�[1m: function is never used: load_params�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/parachain/src/wasm_api.rs:24:15�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m24�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub unsafe fn load_params(params: *const u8, len: usize)�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: #[warn(dead_code)] on by default�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: function is never used: write_result�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/parachain/src/wasm_api.rs:37:8�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m37�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub fn write_result(result: &crate::primitives::ValidationResult) -> u64 {�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: 2 warnings emitted�[0m

�[0m�[0m�[1m�[32m Compiling�[0m sp-timestamp v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-session v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-authority-discovery v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-finality-grandpa v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-transaction-pool v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-offchain v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m sp-block-builder v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-system-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-system v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m xcm-executor v0.8.22 (/home/shawntabrizi/bench-bot/git/polkadot/xcm/xcm-executor)
�[0m�[0m�[1m�[32m Compiling�[0m sp-consensus-babe v0.9.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-benchmarking v3.1.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-authorship v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-transaction-payment v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m polkadot-primitives v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/primitives)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-randomness-collective-flip v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-executive v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-membership v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-gilt v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-recovery v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-society v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-nicks v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-timestamp v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-balances v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-vesting v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-utility v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-indices v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-collective v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-proxy v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-multisig v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-election-provider-multi-phase v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m frame-system-benchmarking v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-democracy v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-elections-phragmen v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-scheduler v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-identity v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-im-online v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-transaction-payment-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-session v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-offences v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-treasury v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-staking v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-authority-discovery v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-grandpa v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-babe v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-tips v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-bounties v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m pallet-session-benchmarking v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m polkadot-runtime-parachains v0.8.0 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/parachains)
�[0m�[1m�[33mwarning�[0m�[0m�[1m: associated function is never used: check_consistency�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/parachains/src/configuration.rs:216:5�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m216�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m fn check_consistency(&self) {�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^^^^^^�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: #[warn(dead_code)] on by default�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: 1 warning emitted�[0m

�[0m�[0m�[1m�[32m Compiling�[0m pallet-offences-benchmarking v3.0.0 (https://github.com/paritytech/substrate?branch=master#ac1f7ff3)
�[0m�[0m�[1m�[32m Compiling�[0m polkadot-runtime-common v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/common)
�[0m�[0m�[1m�[32m Compiling�[0m kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)
�[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no function or associated item named benchmarks found for struct pallet_gilt::Pallet<Runtime> in the current scope�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama/src/lib.rs:1400:4�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1400�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m add_benchmark!(params, batches, pallet_gilt, Gilt);�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mfunction or associated item not found in pallet_gilt::Pallet<Runtime>�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)�[0m

�[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no function or associated item named run_benchmark found for struct pallet_gilt::Pallet<Runtime> in the current scope�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama/src/lib.rs:1400:4�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1400�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m add_benchmark!(params, batches, pallet_gilt, Gilt);�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mfunction or associated item not found in pallet_gilt::Pallet<Runtime>�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)�[0m

�[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no function or associated item named run_benchmark found for struct pallet_gilt::Pallet<Runtime> in the current scope�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama/src/lib.rs:1400:4�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1400�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m add_benchmark!(params, batches, pallet_gilt, Gilt);�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mfunction or associated item not found in pallet_gilt::Pallet<Runtime>�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: aborting due to 3 previous errors�[0m

�[0m�[1mFor more information about this error, try rustc --explain E0599.�[0m
�[0m�[0m�[1m�[31merror�[0m�[1m:�[0m could not compile kusama-runtime

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

@github-actions github-actions bot added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Mar 9, 2021
@gavofyork
Copy link
Member Author

/benchmark runtime kusama pallet_gilt

@parity-benchapp
Copy link

parity-benchapp bot commented Mar 9, 2021

Finished benchmark for branch: gav-kusama-gilts

Benchmark: Benchmark Runtime Kusama Pallet

cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_gilt --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/

Results

Compiling kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)
Compiling polkadot-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/polkadot)
Compiling westend-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/westend)
Compiling rococo-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/rococo)
Compiling polkadot-overseer v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/overseer)
Compiling sc-cli v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling sc-finality-grandpa-warp-sync v0.9.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
Compiling polkadot-node-core-av-store v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/core/av-store)
Compiling polkadot-node-core-approval-voting v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/core/approval-voting)
Compiling polkadot-node-core-proposer v0.1.0 (/home/shawntabrizi/bench-bot/git/polkadot/node/core/proposer)
Compiling frame-benchmarking-cli v3.0.0 (https://github.com/paritytech/substrate.git?branch=master#ac1f7ff3)
error: failed to run custom build command for kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)

Caused by:
process didn't exit successfully: /home/shawntabrizi/bench-bot/git/polkadot/target/release/build/kusama-runtime-08c242d0277c3d3d/build-script-build (exit code: 1)
--- stdout
�[1;33mInformation that should be included in a bug report.�[0m
�[1;33mExecuting build command:�[0m "rustup" "run" "nightly" "cargo" "-Zfeatures=build_dep" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/shawntabrizi/bench-bot/git/polkadot/target/release/wbuild/kusama-runtime/Cargo.toml" "--color=always" "--release"
�[1;33mUsing rustc version:�[0m rustc 1.52.0-nightly (07194ffcd 2021-02-10)

--- stderr
warning: flag -Z features has been stabilized in the 1.51 release, and is no longer necessary
The new feature resolver is now available by specifying resolver = "2" in Cargo.toml.
See https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2 for more information.

�[0m�[1m�[33mwarning�[0m�[0m�[1m: function is never used: load_params�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/parachain/src/wasm_api.rs:24:15�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m24�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub unsafe fn load_params(params: *const u8, len: usize)�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: #[warn(dead_code)] on by default�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: function is never used: write_result�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/parachain/src/wasm_api.rs:37:8�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m37�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0mpub fn write_result(result: &crate::primitives::ValidationResult) -> u64 {�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: 2 warnings emitted�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: associated function is never used: check_consistency�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/parachains/src/configuration.rs:216:5�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m216�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m fn check_consistency(&self) {�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^^^^^^�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: #[warn(dead_code)] on by default�[0m

�[0m�[1m�[33mwarning�[0m�[0m�[1m: 1 warning emitted�[0m

�[0m�[0m�[1m�[32m Compiling�[0m kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)
�[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no function or associated item named benchmarks found for struct pallet_gilt::Pallet<Runtime> in the current scope�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama/src/lib.rs:1400:4�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1400�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m add_benchmark!(params, batches, pallet_gilt, Gilt);�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mfunction or associated item not found in pallet_gilt::Pallet<Runtime>�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)�[0m

�[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no function or associated item named run_benchmark found for struct pallet_gilt::Pallet<Runtime> in the current scope�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama/src/lib.rs:1400:4�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1400�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m add_benchmark!(params, batches, pallet_gilt, Gilt);�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mfunction or associated item not found in pallet_gilt::Pallet<Runtime>�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)�[0m

�[0m�[1m�[38;5;9merror[E0599]�[0m�[0m�[1m: no function or associated item named run_benchmark found for struct pallet_gilt::Pallet<Runtime> in the current scope�[0m
�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0m/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama/src/lib.rs:1400:4�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m1400�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m add_benchmark!(params, batches, pallet_gilt, Gilt);�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[38;5;9m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[38;5;9mfunction or associated item not found in pallet_gilt::Pallet<Runtime>�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)�[0m

�[0m�[1m�[38;5;9merror�[0m�[0m�[1m: aborting due to 3 previous errors�[0m

�[0m�[1mFor more information about this error, try rustc --explain E0599.�[0m
�[0m�[0m�[1m�[31merror�[0m�[1m:�[0m could not compile kusama-runtime

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

@burdges
Copy link
Contributor

burdges commented Mar 9, 2021

We do need to slash gilts whenever validators get slashed, which never got implemented.

@gavofyork
Copy link
Member Author

Not sure what you mean here @burdges . The point of gilts is to ensure that the proportion of the capital remains the same over time. That's how this is implemented. With the inclusion of paritytech/substrate#8299, then we can ensure that the treasury funds don't make it into the issuance calculation, so if stakers (or anyone else) on the system get slashed, then that slash won't form part of the issuance whose proportion is being honoured.

That said, if the treasury elects to spend the slashed funds and they go back into circulation, then the gilt holders will rightly "benefit", in so much as the issuance of which a proportion they hold will increase, no longer being in the treasury.

One thing that is added now is the CappedTreasury imbalance handler, which sends funds to the treasury only up to the amount that goes to the stakers. This means that even if the treasury spends its funds immediately, then the average staker will never do worse than the gilt-holder (and they could only do as bad as a gilt-holder in the rather degenerate case where the staking was so over-staked as to make the reward curve diip below 50% of maximum).

@burdges
Copy link
Contributor

burdges commented Mar 9, 2021

I have not worked out any details, so maybe that suffices, but..

Inflation exists to pay stakers for validators, and staking incurs slashing risk, so either

  1. we account for slashing risk in the delta between validator rewards and gilts inflation, or else
  2. we slash gilts proportionally whenever any validator gets slashed.

We choose 2 if our goal is a smaller delta.

We could also restate the question as: Are gilts meant to be a "bet" that some slashing occurs? If not, then slashing gilts ala 2 makes gilts slashing neutral, in the sense that if gilts get penalized like the average staker gets penalized.

Actually there exist other options like changing the culture to refund more slashes, and thereby lower the slashing risks, but this dichotomy still roughly exists.

@gavofyork
Copy link
Member Author

we account for slashing risk in the delta between validator rewards and gilts inflation, or else

this is one difference (and why staking rewards will generally be substantially greater merely retaining equal proportion of issuance). the other is that staking only requires a lockup of 7/28 days (kusama/polkadot). with gilts, the lockup could be many months or years, depending on the market.

gilts are not a direct alternative to staking. whereas staking is expected to account for 50-75% of issuance and allow for as much capital to be placed in as is desired (with the only drawback being a very graceful reduction in rewards), gilts are strictly capped at some proportion of issuance (e.g. 10%) and their market bids instead on lock-time.

the deal cannot be characterised as "giving up rewards that outperform base inflation for the advantage of no slashing", since there is an auction for lock-duration. if market participants are overwhelmingly in favour of that particular tradeoff, then it just means that the lock-duration with be accordingly large. if the market prefers a small (and inherently avoidable) risk of slashing for rewards that outperform inflation then the lock-duration will be correspondingly smaller.

@burdges
Copy link
Contributor

burdges commented Mar 10, 2021

and their market bids instead on lock-time.

I missed this part before, interesting.

gilts are strictly capped at some proportion of issuance (e.g. 10%)

Issuance means total dots here I guess.

It's sounds mostly harmless actually..

@gavofyork
Copy link
Member Author

/benchmark runtime kusama pallet_gilt

@parity-benchapp
Copy link

parity-benchapp bot commented Mar 10, 2021

Finished benchmark for branch: gav-kusama-gilts

Benchmark: Benchmark Runtime Kusama Pallet

cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_gilt --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/

Results
Updating git repository `https://github.com/paritytech/substrate`
Updating crates.io index

Downloading crates ...
Downloaded proc-macro-crate v1.0.0
Downloaded jsonrpsee-types v0.2.0-alpha.2
Downloaded jsonrpsee-http-client v0.2.0-alpha.2
Downloaded jsonrpsee-proc-macros v0.2.0-alpha.2
Downloaded jsonrpsee-utils v0.2.0-alpha.2
Downloaded thiserror v1.0.24
Downloaded thiserror-impl v1.0.24
Compiling sp-std v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-consensus-slots v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling substrate-build-script-utils v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling thiserror-impl v1.0.24
Compiling sp-debug-derive v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-support-procedural-tools-derive v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-serializer v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-chain-spec v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling jsonrpsee-proc-macros v0.2.0-alpha.2
Compiling sp-tracing v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-wasm-interface v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling fork-tree v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling xcm v0.8.22 (/home/shawntabrizi/bench-bot/git/polkadot/xcm)
Compiling sp-panic-handler v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling polkadot-cli v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/cli)
Compiling kusama-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/kusama)
Compiling westend-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/westend)
Compiling polkadot-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/polkadot)
Compiling rococo-runtime v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/runtime/rococo)
Compiling sp-storage v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-arithmetic v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling thiserror v1.0.24
Compiling proc-macro-crate v1.0.0
Compiling which v4.0.2
Compiling sp-externalities v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling tiny-bip39 v0.8.0
Compiling cranelift-codegen v0.69.0
Compiling prometheus v0.11.0
Compiling jsonrpsee-types v0.2.0-alpha.2
Compiling sp-database v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-support-procedural-tools v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-runtime-interface-proc-macro v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-api-proc-macro v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-npos-elections-compact v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-tracing-proc-macro v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-chain-spec-derive v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-staking-reward-curve v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling prost-build v0.7.0
Compiling sp-utils v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling substrate-prometheus-endpoint v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling jsonrpsee-utils v0.2.0-alpha.2
Compiling frame-support-procedural v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-runtime-interface v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling cranelift-frontend v0.69.0
Compiling cranelift-native v0.69.0
Compiling sc-proposer-metrics v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling jsonrpsee-http-client v0.2.0-alpha.2
Compiling sp-core v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling cranelift-wasm v0.69.0
Compiling sp-trie v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-keystore v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-inherents v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-metadata v13.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-allocator v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-rpc v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-npos-elections v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling wasmtime-environ v0.22.0
Compiling libp2p-core v0.27.1
Compiling libp2p-kad v0.28.1
Compiling libp2p-plaintext v0.27.1
Compiling libp2p-gossipsub v0.28.0
Compiling libp2p-identify v0.27.0
Compiling libp2p-noise v0.29.0
Compiling libp2p-floodsub v0.27.0
Compiling sc-network v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-authority-discovery v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-state-machine v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-executor-common v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-election-providers v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling wasmtime-runtime v0.22.0
Compiling wasmtime-debug v0.22.0
Compiling wasmtime-cranelift v0.22.0
Compiling sc-executor-wasmi v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-io v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling wasmtime-profiling v0.22.0
Compiling wasmtime-obj v0.22.0
Compiling sp-application-crypto v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-tasks v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling remote-externalities v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling wasmtime-jit v0.22.0
Compiling sp-runtime v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-keystore v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling libp2p-swarm v0.27.2
Compiling libp2p-tcp v0.27.1
Compiling libp2p-deflate v0.27.1
Compiling libp2p-uds v0.27.0
Compiling libp2p-mplex v0.27.1
Compiling libp2p-websocket v0.28.0
Compiling libp2p-yamux v0.30.1
Compiling libp2p-dns v0.27.0
Compiling libp2p-wasm-ext v0.27.0
Compiling wasmtime v0.22.0
Compiling libp2p-request-response v0.9.1
Compiling libp2p-ping v0.27.0
Compiling libp2p-mdns v0.28.1
Compiling sp-version v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-staking v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-consensus-slots v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-authorship v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-consensus-vrf v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling polkadot-core-primitives v0.7.30 (/home/shawntabrizi/bench-bot/git/polkadot/core-primitives)
Compiling sp-keyring v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-rpc-server v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-executor-wasmtime v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling libp2p v0.35.1
Compiling sp-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-support v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-peerset v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-telemetry v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-consensus v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-executor v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-timestamp v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-block-builder v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-session v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-authority-discovery v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-finality-grandpa v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-offchain v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-system-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-system v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling xcm-executor v0.8.22 (/home/shawntabrizi/bench-bot/git/polkadot/xcm/xcm-executor)
Compiling frame-try-runtime v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-tracing v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-blockchain v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling polkadot-parachain v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/parachain)
Compiling sp-consensus-babe v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-benchmarking v3.1.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-authorship v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-transaction-payment v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-executive v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-membership v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-randomness-collective-flip v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-nicks v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-sudo v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-society v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-recovery v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sp-transaction-pool v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling polkadot-primitives v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/primitives)
Compiling xcm-builder v0.8.22 (/home/shawntabrizi/bench-bot/git/polkadot/xcm/xcm-builder)
Compiling pallet-timestamp v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-balances v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-vesting v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-indices v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-elections-phragmen v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-democracy v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-election-provider-multi-phase v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-multisig v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-scheduler v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling frame-system-benchmarking v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-utility v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-identity v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-collective v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-proxy v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-gilt v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-transaction-payment-rpc-runtime-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-im-online v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-client-api v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-rpc-api v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-transaction-graph v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-session v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-offences v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling pallet-treasury v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling polkadot-statement-table v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/statement-table)
Compiling polkadot-erasure-coding v0.8.29 (/home/shawntabrizi/bench-bot/git/polkadot/erasure-coding)
Compiling pallet-transaction-payment-rpc v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-block-builder v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-consensus-epochs v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-consensus-uncles v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-consensus v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-state-db v0.9.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-light v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
Compiling sc-transaction-pool v3.0.0 (https://github.com/paritytech/substrate?branch=master#24613496)
error[E0658]: use of unstable library feature 'clamp'
--> /home/shawntabrizi/.cargo/git/checkouts/substrate-7e08433d4c370a21/2461349/client/consensus/slots/src/lib.rs:566:14
|
566 | Self(inner.clamp(0.0, 1.0))
| ^^^^^
|
= note: see issue #44095 rust-lang/rust#44095 for more information

error: aborting due to previous error

For more information about this error, try rustc --explain E0658.
error: could not compile sc-consensus-slots

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

@gavofyork
Copy link
Member Author

/benchmark runtime kusama pallet_gilt

@parity-benchapp
Copy link

parity-benchapp bot commented Mar 10, 2021

Finished benchmark for branch: gav-kusama-gilts

Benchmark: Benchmark Runtime Kusama Pallet

cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_gilt --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/

Results

Pallet: "pallet_gilt", Extrinsic: "place_bid", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 69.64
+ l 0.304
µs

Reads = 2 + (0 * l)
Writes = 2 + (0 * l)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
l mean µs sigma µs %
0 71.8 0.161 0.2%
19 78.18 0.531 0.6%
38 84.01 0.109 0.1%
57 89.43 0.102 0.1%
76 94.71 0.735 0.7%
95 99.68 0.761 0.7%
114 104.6 0.314 0.2%
133 110 0.305 0.2%
152 115 0.397 0.3%
171 120.6 0.407 0.3%
190 125.6 0.355 0.2%
209 131.3 0.416 0.3%
228 136.1 0.236 0.1%
247 140.9 0.216 0.1%
266 147 0.236 0.1%
285 153.2 0.131 0.0%
304 158.8 0.2 0.1%
323 164.3 0.363 0.2%
342 171.7 0.208 0.1%
361 174.9 0.439 0.2%
380 180.1 0.217 0.1%
399 185.7 0.165 0.0%
418 191.2 0.248 0.1%
437 198.3 0.487 0.2%
456 203 0.25 0.1%
475 208.5 0.223 0.1%
494 212.9 0.178 0.0%
513 219.5 0.315 0.1%
532 224.2 0.205 0.0%
551 229.9 0.117 0.0%
570 235.1 0.156 0.0%
589 240.5 0.207 0.0%
608 245.6 0.084 0.0%
627 250.9 0.173 0.0%
646 255.8 0.228 0.0%
665 261.5 0.176 0.0%
684 284.1 0.65 0.2%
703 289 0.42 0.1%
722 294.5 0.615 0.2%
741 299.1 0.353 0.1%
760 305.3 0.671 0.2%
779 311.4 1.009 0.3%
798 316.6 0.554 0.1%
817 322.2 0.514 0.1%
836 327 0.289 0.0%
855 334 0.444 0.1%
874 339.3 0.949 0.2%
893 343.8 0.72 0.2%
912 350.2 1.587 0.4%
931 355.1 0.904 0.2%
950 361.7 0.833 0.2%
969 367.5 1.1 0.2%
988 371.7 0.675 0.1%

Quality and confidence:
param error
l 0

Model:
Time ~= 66.63
+ l 0.308
µs

Reads = 2 + (0 * l)
Writes = 2 + (0 * l)
Pallet: "pallet_gilt", Extrinsic: "place_bid_max", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 307.2
µs

Reads = 2
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 307.2
µs

Reads = 2
Writes = 2
Pallet: "pallet_gilt", Extrinsic: "retract_bid", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 69.94
+ l 0.246
µs

Reads = 2 + (0 * l)
Writes = 2 + (0 * l)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
l mean µs sigma µs %
1 71.53 0.125 0.1%
20 76.3 0.101 0.1%
39 80.59 0.14 0.1%
58 84.82 0.195 0.2%
77 89.51 0.185 0.2%
96 94.24 0.207 0.2%
115 98.21 0.194 0.1%
134 103.1 0.214 0.2%
153 107.4 0.162 0.1%
172 112 0.262 0.2%
191 115.7 0.247 0.2%
210 120.2 0.181 0.1%
229 124.6 0.17 0.1%
248 129.2 0.295 0.2%
267 133.1 0.168 0.1%
286 137.6 0.166 0.1%
305 142.1 0.123 0.0%
324 146.8 0.172 0.1%
343 151.2 0.086 0.0%
362 154.9 0.156 0.1%
381 159.4 0.215 0.1%
400 163.2 0.122 0.0%
419 168.1 0.363 0.2%
438 172.6 0.118 0.0%
457 177.4 0.15 0.0%
476 184.5 2.144 1.1%
495 186.2 1.129 0.6%
514 190.3 0.225 0.1%
533 194.5 0.142 0.0%
552 198.3 0.309 0.1%
571 202.6 0.208 0.1%
590 206.4 0.1 0.0%
609 211.3 0.296 0.1%
628 215.5 0.374 0.1%
647 219.4 0.153 0.0%
666 223.3 0.208 0.0%
685 243.7 0.225 0.0%
704 248.9 0.42 0.1%
723 253.1 0.637 0.2%
742 257.4 0.821 0.3%
761 261.5 0.657 0.2%
780 267.3 0.636 0.2%
799 272.2 0.927 0.3%
818 275.5 0.771 0.2%
837 279.6 0.377 0.1%
856 283.8 0.244 0.0%
875 289.5 0.384 0.1%
894 293.7 0.44 0.1%
913 297.8 0.36 0.1%
932 302.9 0.512 0.1%
951 307.1 0.613 0.1%
970 311.8 0.601 0.1%
989 316 0.463 0.1%

Quality and confidence:
param error
l 0

Model:
Time ~= 66.76
+ l 0.25
µs

Reads = 2 + (0 * l)
Writes = 2 + (0 * l)
Pallet: "pallet_gilt", Extrinsic: "set_target", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 5.467
µs

Reads = 1
Writes = 1
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 5.467
µs

Reads = 1
Writes = 1
Pallet: "pallet_gilt", Extrinsic: "thaw", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 73.1
µs

Reads = 2
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 73.1
µs

Reads = 2
Writes = 2
Pallet: "pallet_gilt", Extrinsic: "pursue_target_noop", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 3.203
µs

Reads = 1
Writes = 0
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 3.203
µs

Reads = 1
Writes = 0
Pallet: "pallet_gilt", Extrinsic: "pursue_target_per_item", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 68.36
+ b 10.49
µs

Reads = 3 + (0 * b)
Writes = 3 + (1 * b)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
b mean µs sigma µs %
1 78.04 0.095 0.1%
20 276.1 0.261 0.0%
39 473.1 0.881 0.1%
58 671.1 1.176 0.1%
77 874.2 1.357 0.1%
96 1072 2.353 0.2%
115 1268 7.782 0.6%
134 1474 12.03 0.8%
153 1677 9.801 0.5%
172 1878 10.38 0.5%
191 2065 10.11 0.4%
210 2267 8.124 0.3%
229 2463 10.09 0.4%
248 2686 2.94 0.1%
267 2872 8.016 0.2%
286 3067 8.385 0.2%
305 3299 11.28 0.3%
324 3466 8.896 0.2%
343 3677 6.294 0.1%
362 3874 8.606 0.2%
381 4075 7.148 0.1%
400 4273 7.583 0.1%
419 4481 5.856 0.1%
438 4665 7.499 0.1%
457 4874 13.27 0.2%
476 5057 7.284 0.1%
495 5274 4.779 0.0%
514 5467 3.708 0.0%
533 5674 11.48 0.2%
552 5863 9.83 0.1%
571 6057 7.582 0.1%
590 6262 7.43 0.1%
609 6465 12.68 0.1%
628 6656 5.1 0.0%
647 6858 14.2 0.2%
666 7075 21.6 0.3%
685 7267 13.06 0.1%
704 7471 12.01 0.1%
723 7664 13.52 0.1%
742 7868 13.08 0.1%
761 8074 10.48 0.1%
780 8261 12.44 0.1%
799 8451 16.15 0.1%
818 8640 15.71 0.1%
837 8848 6.431 0.0%
856 9043 16.81 0.1%
875 9254 18.02 0.1%
894 9452 22.56 0.2%
913 9652 8.218 0.0%
932 9827 11.48 0.1%
951 10060 16.01 0.1%
970 10270 13 0.1%
989 10440 9.536 0.0%

Quality and confidence:
param error
b 0.002

Model:
Time ~= 68.96
+ b 10.5
µs

Reads = 3 + (0 * b)
Writes = 3 + (1 * b)
Pallet: "pallet_gilt", Extrinsic: "pursue_target_per_queue", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 41.21
+ q 16.92
µs

Reads = 2 + (1 * q)
Writes = 2 + (2 * q)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
q mean µs sigma µs %
1 78.11 0.127 0.1%
6 159.1 0.28 0.1%
11 238.8 0.322 0.1%
16 320.1 0.496 0.1%
21 402 0.333 0.0%
26 485.2 0.682 0.1%
31 569.8 8.089 1.4%
36 647.8 1.737 0.2%
41 731.1 1.124 0.1%
46 812.2 1.196 0.1%
51 896.8 2.458 0.2%
56 974.5 0.744 0.0%
61 1063 2.314 0.2%
66 1149 1.383 0.1%
71 1229 1.7 0.1%
76 1308 7.854 0.6%
81 1400 5.528 0.3%
86 1488 10.87 0.7%
91 1572 12.75 0.8%
96 1647 6.493 0.3%
101 1723 1.805 0.1%
106 1854 2.921 0.1%
111 1915 14.16 0.7%
116 1984 10.68 0.5%
121 2072 11.64 0.5%
126 2161 11.81 0.5%
131 2244 13.23 0.5%
136 2323 15.56 0.6%
141 2411 13.59 0.5%
146 2497 11.74 0.4%
151 2587 10.23 0.3%
156 2670 13.63 0.5%
161 2781 16.98 0.6%
166 2930 23.34 0.7%
171 2993 10.76 0.3%
176 3192 7.186 0.2%
181 3119 15.92 0.5%
186 3164 12.47 0.3%
191 3252 11.91 0.3%
196 3334 5.599 0.1%
201 3432 8.805 0.2%
206 3496 11.34 0.3%
211 3610 8.521 0.2%
216 3687 8.974 0.2%
221 3765 13.24 0.3%
226 3868 7.583 0.1%
231 3944 12.94 0.3%
236 4037 3.1 0.0%
241 4119 7.046 0.1%
246 4227 9.656 0.2%
251 4302 17 0.3%
256 4387 11.21 0.2%
261 4465 15.44 0.3%
266 4550 11.17 0.2%
271 4646 19.7 0.4%
276 4711 10.54 0.2%
281 4807 5.383 0.1%
286 4912 8.331 0.1%
291 5058 19.65 0.3%
296 5062 7.849 0.1%

Quality and confidence:
param error
q 0.015

Model:
Time ~= 33.79
+ q 16.99
µs

Reads = 2 + (1 * q)
Writes = 2 + (2 * q)

…n=kusama-dev --steps=50 --repeat=20 --pallet=pallet_gilt --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
.saturating_sub(auction_proportion)
.saturating_sub(gilt_proportion);

let stake = Perquintill::from_rational(total_staked, non_gilt_issuance);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't completely understand why stake rate is total_staked/non_gilt_issuance and ideal_stake is 75% minus 75% of gilt target.
Gilt target says to be "The target proportion of gilts within total issuance.". Why isn't the stake rate total_staked/total issuance (including gilt issuance) then. (or why isn't ideal_stake just 75%)

But I think I misunderstand gilt target meaning.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlistairStewart - the gilt_proportion = gilt_target * 3 / 4 came from your direction - could you explain? Also, is the formula correct with comparing the ideal_stake (which explicitly removes the portion expected for gilts from its numerator) with the stake (which only counts non-gilt issuance for its denominator). They do indeed seem mismatched.

Copy link
Contributor

@thiolliere thiolliere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from not understanding how we use gilt info in the ideal_stake https://github.com/paritytech/polkadot/pull/2587/files#r629483645 implementation is good to me

@gavofyork
Copy link
Member Author

@shawntabrizi final review appreciated.

Copy link
Contributor

@shawntabrizi shawntabrizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not dive deep into ideal_stake, but I assume Al will jump in to clarify.

Other parts look okay. Important TODO to make this stuff work w/ slots counter.

@xlc
Copy link
Contributor

xlc commented May 11, 2021

How does teleported asset work with this? i.e. KSM teleported to Statemine. Am I right that teleported assert will be removed from total issuance?

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except not knowing where some magic numbers (75% stake, up to 60 auctions etc.) come from, but I assume they have sufficient reasoning.

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
@gavofyork gavofyork merged commit a1e3ca3 into master May 11, 2021
@gavofyork gavofyork deleted the gav-kusama-gilts branch May 11, 2021 13:40
@louismerlin louismerlin added D1-audited 👍 PR contains changes to critical logic that has been properly reviewed and externally audited. and removed D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D1-audited 👍 PR contains changes to critical logic that has been properly reviewed and externally audited.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants