Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lamafab authored and FlorianFranzen committed Jun 18, 2021
1 parent 1a25daa commit 4267e45
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions PSPs/drafts/psp-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,23 @@ The genesis file must be represented in the following format:
|consensusEngine |null |YES |Never used; left only for backward compatibility|
|genesis |Object->Genesis |YES |Contains the genesis parameters|

**Object:** Properties
Object: Properties

|Name |Type |Mandatory|Description|
|-------------|------|---------|-----------|
|ss58Format |Int |NO |[SS58 Address Format](https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58))|
|tokenDecimals|Int |NO |The decimal precision of the native token|
|tokenSymbol |String|NO |Symbol of the native token|

**Object:** Genesis
Object: Genesis

|Name|Type |Mandatory|Description|
|----|---------------------|---------|-----------|
|raw |Object[String:String]|YES |The key/values pairs required for the runtime|

**Example:**
```

```json
{
"name": "Kusama CC3",
"id": "ksmcc3",
Expand Down Expand Up @@ -86,6 +89,7 @@ Multiple genesis files can be found in the Polkadot Runtime Environment specific
This Polkadot Standards Proposal is placed in the public domain as defined in the [CC0 1.0 Universal (CC0 1.0) Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/).

## TODO

- Why is the client side `id` mandatory while `protocolId` is not?
- Shouldn't `id` and `protocolId` be the same field/value?
- The ss58 address format should also be a PSP.
Expand All @@ -94,12 +98,13 @@ This Polkadot Standards Proposal is placed in the public domain as defined in th
- Since Polkadot has not been released yet, why is `"consensusEngine"` a legacy field?
- What should be defined in the header value "Reference Implemenation"?
- Those telemetry log levels are implementation specific and probably do not need to be standardized. Should the log levels be part of the genesis file? Should telemetry itself be part of the genesis file? If yes, then the behavior of the telemetry endpoint/interfaces must probably be specced, too.
```

```rust
pub const SUBSTRATE_DEBUG: &str = "9";
pub const SUBSTRATE_INFO: &str = "0";

pub const CONSENSUS_TRACE: &str = "9";
pub const CONSENSUS_DEBUG: &str = "5";
pub const CONSENSUS_WARN: &str = "4";
pub const CONSENSUS_INFO: &str = "1";
```
```

0 comments on commit 4267e45

Please sign in to comment.