UNPKG

@kba-tools/genesis-tool

Version:

A forked repo from ConsenSys which helps to generate genesis block for Besu Network with xemptyBlockPeriod field.

41 lines (38 loc) 1.19 kB
import { Consensus } from "../../src/types/consensus"; import { QuorumConfig } from "../../src/types/quorumConfig"; import { CryptoCurve } from "../../src/types/cryptoCurve"; export const TEST_QUORUM_CONFIG: QuorumConfig = { consensus: Consensus.qbft, chainID: 1337, blockperiod: 5, xemptyBlockPeriod: true, emptyBlockPeriod: 60, requestTimeout: 10, epochLength: 30000, difficulty: 1, gasLimit: "0x1fffffffffffff", coinbase: "0x0000000000000000000000000000000000000000", maxCodeSize: 255, txnSizeLimit: 255, validators: 4, members: 2, bootnodes: 2, accountPassword: "", curve: CryptoCurve.k1, outputPath: "./output", tesseraEnabled: false, tesseraPassword: "", quickstartDevAccounts: false, noOutputTimestamp: false, prefundedAccounts: "{}", genesisNodeAllocation: "100", }; export const TEST_NODE = { privateKey: "865ea77fe933ba01ad4ff60b7c9187ff34be5327350c5045153e5cfa85302013", publicKey: "beed1b5bc414a2cc13d04d6017f9ebeec9818ba1b8c97be5776328490c69c5f0a07edc20589fa373c99aeb199d685ea177b93a4c8eb57f91304883b3d9c449ff", address: "3db22f82cab50038f33e33cb35a86c92f5bc18f4", password: "", curve: CryptoCurve.k1, };