Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[MINOR] gensis typo #892

Merged
merged 1 commit into from
Feb 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void startNode(final PantheonNode node) {

private Path createGenesisFile(final PantheonNode node, final EthNetworkConfig ethNetworkConfig) {
try {
Path genesisFile = Files.createTempFile(node.homeDirectory(), "gensis", "");
Path genesisFile = Files.createTempFile(node.homeDirectory(), "genesis", "");
Files.write(genesisFile, ethNetworkConfig.getGenesisConfig().getBytes(UTF_8));
return genesisFile;
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void encodeAndDecodingDoNotAlterData() {

@Test
public void parseRinkebyGenesisBlockExtraData() {
// Rinkeby gensis block extra data text found @ rinkeby.io
// Rinkeby genesis block extra data text found @ rinkeby.io
final byte[] genesisBlockExtraData =
Hex.decode(
"52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");
Expand Down
2 changes: 1 addition & 1 deletion docs/Configuring-Pantheon/NetworkID-And-ChainID.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Pantheon network ID and chain ID implementation
Ethereum networks have a network ID and a chain ID. The network ID defaults to the chain ID specified
in the genesis file.

!!! example "Chain ID in Gensis File"
!!! example "Chain ID in Genesis File"
```json
{
"config": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static void setUpOnce() throws Exception {
assertThat(blocksUrl).isNotNull();
assertThat(genesisJsonUrl).isNotNull();

final String gensisjson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);
final String genesisJson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);

BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, gensisjson));
BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, genesisJson));
}

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public static void setUpOnce() throws Exception {
assertThat(blocksUrl).isNotNull();
assertThat(genesisJsonUrl).isNotNull();

final String gensisjson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);
final String genesisJson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);

BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, gensisjson));
BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, genesisJson));
}

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public static void setUpOnce() throws Exception {
assertThat(blocksUrl).isNotNull();
assertThat(genesisJsonUrl).isNotNull();

final String gensisjson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);
final String genesisJson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);

BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, gensisjson));
BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, genesisJson));
}

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public static void setUpOnce() throws Exception {
assertThat(blocksUrl).isNotNull();
assertThat(genesisJsonUrl).isNotNull();

final String gensisjson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);
final String genesisJson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);

BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, gensisjson));
BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, genesisJson));
}

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public static void setUpOnce() throws Exception {
assertThat(blocksUrl).isNotNull();
assertThat(genesisJsonUrl).isNotNull();

final String gensisjson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);
final String genesisJson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);

BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, gensisjson));
BLOCKCHAIN = new JsonRpcTestMethodsFactory(new BlockchainImporter(blocksUrl, genesisJson));
}

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ public static void setupConstants() throws Exception {
}
}

final String gensisjson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);
final String genesisJson = Resources.toString(genesisJsonUrl, Charsets.UTF_8);

GENESIS_BLOCK = BLOCKS.get(0);
GENESIS_CONFIG = GenesisState.fromJson(gensisjson, PROTOCOL_SCHEDULE);
GENESIS_CONFIG = GenesisState.fromJson(genesisJson, PROTOCOL_SCHEDULE);
}

@Before
Expand Down