Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 protected
  • release/runtime-800 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
40 results

runtime-constants.md

Blame
  • runtime-constants.md 20.09 KiB

    Runtime Constant

    There are 69 constants from 35 pallets.

    • System - 0
      • BlockWeights Block & extrinsics weights: base values and limits.
        value: frame_system::limits::BlockWeights({ base_block: { ref_time: 431614000, proof_size: 0 }, max_block: { ref_time: 2000000000000, proof_size: 18446744073709551615 }, per_class: { normal: { base_extrinsic: { ref_time: 108157000, proof_size: 0 }, max_extrinsic: Some ({ ref_time: 1299891843000, proof_size: 11990383647911208550 }), max_total: Some ({ ref_time: 1500000000000, proof_size: 13835058055282163711 }), reserved: Some ({ ref_time: 0, proof_size: 0 }) }, operational: { base_extrinsic: { ref_time: 108157000, proof_size: 0 }, max_extrinsic: Some ({ ref_time: 1799891843000, proof_size: 16602069666338596454 }), max_total: Some ({ ref_time: 2000000000000, proof_size: 18446744073709551615 }), reserved: Some ({ ref_time: 500000000000, proof_size: 4611686018427387904 }) }, mandatory: { base_extrinsic: { ref_time: 108157000, proof_size: 0 }, max_extrinsic: None (), max_total: None (), reserved: None () } } })
      • BlockLength The maximum length of a block (in bytes).
        value: frame_system::limits::BlockLength({ max: { normal: 3932160, operational: 5242880, mandatory: 5242880 } })
      • BlockHashCount Maximum number of block number to block hash mappings to keep (oldest pruned first).
        value: U32(2400)
      • DbWeight The weight of runtime database operations the runtime can invoke.
        value: sp_weights::RuntimeDbWeight({ read: 14314000, write: 99642000 })
      • Version Get the chain's in-code version.
        value: sp_version::RuntimeVersion({ spec_name: ("gdev"), impl_name: ("duniter-gdev"), authoring_version: 1, spec_version: 800, impl_version: 1, apis: ((((104, 122, 212, 74, 211, 127, 3, 194), 1), ((203, 202, 37, 227, 159, 20, 35, 135), 2), ((223, 106, 203, 104, 153, 7, 96, 155), 5), ((55, 227, 151, 252, 124, 145, 245, 228), 2), ((64, 254, 58, 212, 1, 248, 149, 154), 6), ((210, 188, 152, 151, 238, 208, 143, 21), 3), ((247, 139, 39, 139, 229, 63, 69, 76), 2), ((171, 60, 5, 114, 41, 31, 235, 139), 1), ((237, 153, 197, 172, 178, 94, 237, 245), 3), ((188, 157, 137, 144, 79, 91, 146, 63), 1), ((55, 200, 187, 19, 80, 169, 162, 168), 4), ((251, 197, 119, 185, 215, 71, 239, 214), 1))), transaction_version: 1, system_version: 1 })
      • SS58Prefix The designated SS58 prefix of this chain.

        This replaces the "ss58Format" property declared in the chain spec. Reason is that the runtime should know about the prefix in order to make use of it as an identifier of the chain.

        value: U16(42)
    • Account - 1
    • Scheduler - 2
      • MaximumWeight The maximum weight that may be scheduled per block for any dispatchables.
        value: sp_weights::weight_v2::Weight({ ref_time: 1600000000000, proof_size: 14757395258967641292 })
      • MaxScheduledPerBlock The maximum number of scheduled calls in the queue for a single block.

        NOTE:

        • Dependent pallets' benchmarks might require a higher limit for the setting. Set a higher limit under runtime-benchmarks feature.
        value: U32(50)
    • Babe - 3
      • EpochDuration The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production.
        value: U64(30)
      • ExpectedBlockTime The expected average block time at which BABE should be creating blocks. Since BABE is probabilistic it is not trivial to figure out what the expected average block time should be based on the slot duration and the security parameter `c` (where `1 - c` represents the probability of a slot being empty).
        value: U64(6000)
      • MaxAuthorities Max number of authorities allowed
        value: U32(32)
      • MaxNominators The maximum number of nominators for each validator.
        value: U32(64)
    • Timestamp - 4
      • MinimumPeriod The minimum period between blocks.

        Be aware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. For example, in the Aura pallet it will be double this period on default settings.

        value: U64(3000)
    • Parameters - 5
    • Balances - 6
      • ExistentialDeposit The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!

        If you really need it to be zero, you can enable the feature insecure_zero_ed for this pallet. However, you do so at your own risk: this will open up a major DoS vector. In case you have multiple sources of provider references, you may also get unexpected behaviour if you set this to zero.

        Bottom line: Do yourself a favour and make it at least one!

        value: U64(100)
      • MaxLocks The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation.

        Use of locks is deprecated in favour of freezes. See https://github.com/paritytech/substrate/pull/12951/

        value: U32(50)
      • MaxReserves The maximum number of named reserves that can exist on an account.

        Use of reserves is deprecated in favour of holds. See https://github.com/paritytech/substrate/pull/12951/

        value: U32(5)
      • MaxFreezes The maximum number of individual freeze locks that can exist on an account at any time.
        value: U32(0)
    • TransactionPayment - 32
      • OperationalFeeMultiplier A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their `priority`

        This value is multiplied by the final_fee to obtain a "virtual tip" that is later added to a tip component in regular priority calculations. It means that a Normal transaction can front-run a similarly-sized Operational extrinsic (with no tip), by including a tip value greater than the virtual tip.

        // For `Normal`
        let priority = priority_calc(tip);
        
        // For `Operational`
        let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
        let priority = priority_calc(tip + virtual_tip);

        Note that since we use final_fee the multiplier applies also to the regular tip sent with the transaction. So, not only does the transaction get a priority bump based on the inclusion_fee, but we also amplify the impact of tips applied to Operational transactions.

        value: U8(5)
    • OneshotAccount - 7
    • Quota - 66
      • RefundAccount Account used to refund fees.
        value: sp_core::crypto::AccountId32(((109, 111, 100, 108, 112, 121, 47, 116, 114, 115, 114, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)))
    • SmithMembers - 10
      • MaxByIssuer Maximum number of active certifications per issuer.
        value: U32(8)
      • MinCertForMembership Minimum number of certifications required to become a Smith.
        value: U32(2)
      • SmithInactivityMaxDuration Maximum duration of inactivity allowed before a Smith is removed.
        value: U32(48)
    • AuthorityMembers - 11
      • MaxAuthorities Maximum number of authorities allowed.
        value: U32(32)
    • Authorship - 12
    • Offences - 13
    • Historical - 14
    • Session - 15
    • Grandpa - 16
      • MaxAuthorities Max Authorities in use
        value: U32(32)
      • MaxNominators The maximum number of nominators for each validator.
        value: U32(64)
      • MaxSetIdSessionEntries The maximum number of entries to keep in the set id to session index mapping.

        Since the SetIdSession map is only used for validating equivocations this value should relate to the bonding duration of whatever staking system is being used (if any). If equivocation handling is not enabled then this value can be zero.

        value: U64(1000)
    • ImOnline - 17
      • UnsignedPriority A configuration for base priority of unsigned transactions.

        This is exposed so that it can be tuned for particular runtime, when multiple pallets send unsigned transactions.

        value: U64(18446744073709551615)
    • AuthorityDiscovery - 18
    • Sudo - 20
    • UpgradeOrigin - 21
    • Preimage - 22
    • TechnicalCommittee - 23
      • MaxProposalWeight The maximum weight of a dispatch call that can be proposed and executed.
        value: sp_weights::weight_v2::Weight({ ref_time: 1000000000000, proof_size: 9223372036854775807 })
    • UniversalDividend - 30
      • MaxPastReeval Maximum number of past UD revaluations to keep in storage.
        value: U32(160)
      • SquareMoneyGrowthRate Square of the money growth rate per UD reevaluation period.
        value: sp_arithmetic::per_things::Perbill((2381440))
      • UdCreationPeriod Universal dividend creation period in milliseconds.
        value: U64(60000)
      • UdReevalPeriod Universal dividend reevaluation period in milliseconds.
        value: U64(1200000)
    • Wot - 40
      • FirstIssuableOn The block number from which the first certification can be issued.
        value: U32(20)
      • MinCertForMembership The minimum number of certifications required for membership eligibility.
        value: U32(2)
      • MinCertForCreateIdtyRight The minimum number of certifications required to create an identity.
        value: U32(2)
    • Identity - 41
      • ConfirmPeriod The period during which the owner can confirm the new identity.
        value: U32(40)
      • ValidationPeriod The period during which the identity has to be validated to become a member.
        value: U32(876600)
      • AutorevocationPeriod The period before which an identity that lost membership is automatically revoked.
        value: U32(438300)
      • DeletionPeriod The period after which a revoked identity is removed and the keys are freed.
        value: U32(438300)
      • ChangeOwnerKeyPeriod The minimum duration between two owner key changes to prevent identity theft.
        value: U32(100800)
      • IdtyCreationPeriod The minimum duration between the creation of two identities by the same creator. Should be greater than or equal to the certification period defined in the certification pallet.
        value: U32(50)
    • Membership - 42
      • MembershipPeriod Maximum lifespan of a single membership (in number of blocks).
        value: U32(1000)
      • MembershipRenewalPeriod Minimum delay to wait before renewing membership, i.e., asking for distance evaluation.
        value: U32(1000)
    • Certification - 43
      • CertPeriod The minimum duration (in blocks) between two certifications issued by the same issuer.
        value: U32(15)
      • MaxByIssuer The maximum number of active certifications that can be issued by a single issuer.
        value: U32(10)
      • MinReceivedCertToBeAbleToIssueCert The minimum number of certifications received that an identity must have to be allowed to issue a certification.
        value: U32(2)
      • ValidityPeriod The duration (in blocks) for which a certification remains valid.
        value: U32(1000)
    • Distance - 44
      • EvaluationPrice The amount reserved during evaluation.
        value: U64(1000)
      • EvaluationPeriod The evaluation period in blocks. Since the evaluation uses 3 pools, the total evaluation time will be 3 * EvaluationPeriod.
        value: U32(7)
      • MaxRefereeDistance The maximum distance used to define a referee's accessibility. This value is not used by the runtime but is needed by the client distance oracle.
        value: U32(5)
      • MinAccessibleReferees The minimum ratio of accessible referees required.
        value: sp_arithmetic::per_things::Perbill((800000000))
    • AtomicSwap - 50
      • ProofLimit Limit of proof size.

        Atomic swap is only atomic if once the proof is revealed, both parties can submit the proofs on-chain. If A is the one that generates the proof, then it requires that either:

        • A's blockchain has the same proof length limit as B's blockchain.
        • Or A's blockchain has shorter proof length limit as B's blockchain.

        If B sees A is on a blockchain with larger proof length limit, then it should kindly refuse to accept the atomic swap request if A generates the proof, and asks that B generates the proof instead.

        value: U32(1024)
    • Multisig - 51
      • DepositBase The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later.

        This is held for an additional storage item whose value size is 4 + sizeof((BlockNumber, Balance, AccountId)) bytes and whose key size is 32 + sizeof(AccountId) bytes.

        value: U64(100)
      • DepositFactor The amount of currency needed per unit threshold when creating a multisig execution.

        This is held for adding 32 bytes more into a pre-existing storage value.

        value: U64(32)
      • MaxSignatories The maximum amount of signatories allowed in the multisig.
        value: U32(10)
    • ProvideRandomness - 52
      • MaxRequests Maximum number of not yet filled requests.
        value: U32(100)
      • RequestPrice The price of a request.
        value: U64(2000)
    • Proxy - 53
      • ProxyDepositBase The base amount of currency needed to reserve for creating a proxy.

        This is held for an additional storage item whose value size is sizeof(Balance) bytes and whose key size is sizeof(AccountId) bytes.

        value: U64(108)
      • ProxyDepositFactor The amount of currency needed per proxy added.

        This is held for adding 32 bytes plus an instance of ProxyType more into a pre-existing storage value. Thus, when configuring ProxyDepositFactor one should take into account 32 + proxy_type.encode().len() bytes of data.

        value: U64(33)
      • MaxProxies The maximum amount of proxies allowed for a single account.
        value: U32(32)
      • MaxPending The maximum amount of time-delayed announcements that are allowed to be pending.
        value: U32(32)
      • AnnouncementDepositBase The base amount of currency needed to reserve for creating an announcement.

        This is held when a new storage item holding a Balance is created (typically 16 bytes).

        value: U64(108)
      • AnnouncementDepositFactor The amount of currency needed per announcement made.

        This is held for adding an AccountId, Hash and BlockNumber (typically 68 bytes) into a pre-existing storage value.

        value: U64(66)
    • Utility - 54
      • batched_calls_limit The limit on the number of batched calls.
        value: U32(10922)
    • Treasury - 55
      • SpendPeriod Period between successive spends.
        value: U32(14400)
      • Burn Percentage of spare funds (if any) that are burnt per spend period.
        value: sp_arithmetic::per_things::Permill((0))
      • PalletId The treasury's pallet id, used for deriving its sovereign account ID.
        value: frame_support::PalletId(((112, 121, 47, 116, 114, 115, 114, 121)))
      • MaxApprovals DEPRECATED: associated with `spend_local` call and will be removed in May 2025. Refer to for migration to `spend`.

        The maximum number of approvals that can wait in the spending queue.

        NOTE: This parameter is also used within the Bounties Pallet extension if enabled.

        value: U32(100)
      • PayoutPeriod The period during which an approved treasury spend has to be claimed.
        value: U32(10)