• Shawn Tabrizi's avatar
    Don't allow bids for a ParaId where there is an overlapping lease period (#3361) · 2c44780f
    Shawn Tabrizi authored
    
    
    * add already leased
    
    Co-Authored-By: parity-processbot <>
    
    * add unit test
    
    Co-Authored-By: parity-processbot <>
    
    * add integration test and fix
    
    Co-Authored-By: parity-processbot <>
    
    * better doc
    
    Co-Authored-By: parity-processbot <>
    
    * Update runtime/common/src/slots.rs
    
    * Update runtime/common/src/slots.rs
    
    * Apply suggestions from code review
    
    Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
    Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
    
    * Update runtime/common/src/integration_tests.rs
    
    * Update runtime/common/src/integration_tests.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_crowdloan.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_crowdloan.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_slots.rs
    
    * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_slots.rs
    
    Co-authored-by: default avatarAndré Silva <123550+andresilva@users.noreply.github.com>
    Co-authored-by: default avatarKian Paimani <5588131+kianenigma@users.noreply.github.com>
    Co-authored-by: default avatarParity Bot <admin@parity.io>
    2c44780f