entropyxyz / entropy-core

Protocol and cryptography development.
https://docs.entropy.xyz/
GNU Affero General Public License v3.0
11 stars 2 forks source link

Staking_extension benchmark failing #1130

Closed JesseAbram closed 2 weeks ago

JesseAbram commented 1 month ago

Currently on master 65a38db65b0294f75a7d5ebd0726f8687601fb33 running the staking_extention benchmarks gives you this error

Error message

jesse@Jesses-MacBook-Pro [☁️ NO AWS_PROFILE SET] entropy-core % ./scripts/single_benchmark.sh                      
2024-10-22 12:58:19 [0] 💸 generated 4 npos voters, 4 from validators and 0 nominators    
2024-10-22 12:58:19 [0] 💸 generated 4 npos targets    
2024-10-22 12:58:19 Starting benchmark: pallet_staking_extension::change_endpoint    
2024-10-22 12:58:19 panicked at /Users/jesse/Desktop/entropy/entropy-core/pallets/staking/src/benchmarking.rs:106:9:
Expected Ok(_). Got Err(
    Module(
        ModuleError {
            index: 12,
            error: [
                16,
                0,
                0,
                0,
            ],
            message: Some(
                "FailedAttestationCheck",
            ),
        },
    ),
)    
Error: Input("Error executing and verifying runtime benchmark: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed\nWASM backtrace:\nerror while executing at wasm backtrace:\n    0: 0x58da82 - entropy_runtime.wasm!rust_begin_unwind\n    1: 0x141a7 - entropy_runtime.wasm!core::panicking::panic_fmt::hed1691b36c7fa361\n    2: 0xd1f5c - entropy_runtime.wasm!pallet_staking_extension::benchmarking::prep_bond_and_validate::hf204769b04997043\n    3: 0xc9a60 - entropy_runtime.wasm!<pallet_staking_extension::benchmarking::SelectedBenchmark as frame_benchmarking::utils::BenchmarkingSetup<T>>::instance::h7254a6903105d1b9\n    4: 0x215e6c - entropy_runtime.wasm!pallet_staking_extension::benchmarking::<impl frame_benchmarking::utils::Benchmarking for pallet_staking_extension::pallet::Pallet<T>>::run_benchmark::hce8c38a2434d447b\n    5: 0x54d20 - entropy_runtime.wasm!<entropy_runtime::Runtime as frame_benchmarking::utils::runtime_decl_for_benchmark::BenchmarkV1<sp_runtime::generic::block::Block<sp_runtime::generic::header::Header<u32,sp_runtime::traits::BlakeTwo256>,sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic<sp_runtime::multiaddress::MultiAddress<<<sp_runtime::MultiSignature as sp_runtime::traits::Verify>::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,u32>,entropy_runtime::RuntimeCall,sp_runtime::MultiSignature,(frame_system::extensions::check_spec_version::CheckSpecVersion<entropy_runtime::Runtime>,frame_system::extensions::check_tx_version::CheckTxVersion<entropy_runtime::Runtime>,frame_system::extensions::check_genesis::CheckGenesis<entropy_runtime::Runtime>,frame_system::extensions::check_mortality::CheckMortality<entropy_runtime::Runtime>,frame_system::extensions::check_nonce::CheckNonce<entropy_runtime::Runtime>,frame_system::extensions::check_weight::CheckWeight<entropy_runtime::Runtime>,pallet_transaction_payment::ChargeTransactionPayment<entropy_runtime::Runtime>)>>>>::dispatch_benchmark::hd6aa119c1daf88e3\n    6: 0x4fe63f - entropy_runtime.wasm!Benchmark_dispatch_benchmark")