diff --git a/docs/Consensus-Protocols/Clique.md b/docs/Consensus-Protocols/Clique.md index 663415b5ce..ed8ada5908 100644 --- a/docs/Consensus-Protocols/Clique.md +++ b/docs/Consensus-Protocols/Clique.md @@ -21,19 +21,28 @@ genesis file in the `/pantheon/config/src/main/resources` directory. A PoA genesis file defines properties specific to Clique: -!!! example "Genesis JSON file (stripped)" +!!! example "Example Clique Genesis File" ```json { - "config": { - .... - "clique": { - "blockperiodseconds": 15, - "epochlength": 30000 + "config":{ + "chainId":1981, + "constantinoplefixblock": 0, + "clique":{ + "blockperiodseconds":15, + "epochlength":30000 } }, - ... - "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000dd37f65db31c107f773e82a4f85c693058fef7a90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - ... + "coinbase":"0x0000000000000000000000000000000000000000", + "difficulty":"0x1", + "extraData":"0x000000000000000000000000000000000000000000000000000000000000000001a54556254bfa3db2daa7673435ec63649925c50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "gasLimit":"0xa00000", + "mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce":"0x0", + "timestamp":"0x5c51a607", + "alloc": {}, + "number":"0x0", + "gasUsed":"0x0", + "parentHash":"0x0000000000000000000000000000000000000000000000000000000000000000" } ``` diff --git a/docs/Consensus-Protocols/IBFT.md b/docs/Consensus-Protocols/IBFT.md index abbc4f50d1..8b9e3d5839 100644 --- a/docs/Consensus-Protocols/IBFT.md +++ b/docs/Consensus-Protocols/IBFT.md @@ -15,11 +15,12 @@ Validators take turns to create the next block. Existing validators propose and To use IBFT 2.0 requires an IBFT 2.0 genesis file. The genesis file defines properties specific to IBFT 2.0: -!!! example "IBFT 2.0 Genesis File (stripped)" +!!! example "Example IBFT 2.0 Genesis File" ```json { "config": { - ... + "chainId": 1981, + "constantinoplefixblock": 0, "ibft2": { "blockperiodseconds": 2, "epochlength": 30000, @@ -27,10 +28,13 @@ To use IBFT 2.0 requires an IBFT 2.0 genesis file. The genesis file defines prop } }, "nonce": "0x0", - "extraData": "0xf853a00000000000000000000000000000000000000000000000000000000000000000ea94be068f726a13c8d46c44be6ce9d275600e1735a4945ff6f4b66a46a2b2310a6f3a93aaddc0d9a1c193808400000000c0", + "timestamp": "0x58ee40ba", + "extraData": "0xf83ea00000000000000000000000000000000000000000000000000000000000000000d594c2ab482b506de561668e07f04547232a72897daf808400000000c0", + "gasLimit": "0x47b760", "difficulty": "0x1", "mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365", - ... + "coinbase": "0x0000000000000000000000000000000000000000", + "alloc": {} } ```