以太坊genesis.json配置檔案中各引數解釋
以太坊genesis.json
配置檔案中各引數解釋:
mixhash
A 256-bit hash which proves, combined with the nonce, that a sufficient amount of computation has been carried out on this block: the Proof-of-Work (PoW). The combination of nonce and mixhash must satisfy a mathematical condition described in the Yellowpaper, 4.3.4. Block Header Validity, (44). It allows to verify that the Block has really been cryptographically mined, thus, from this aspect, is valid.
一個256位的雜湊證明,與nonce相結合,已經對該塊進行了足夠的計算:工作量證明(PoW)。 nonce和mixhash的組合必須滿足黃皮書4.3.4中描述的數學條件。塊頭有效性,(44)。它允許驗證塊確實已經加密地挖掘,因此,從這方面來說,它是有效的。
nonce
A 64-bit hash, which proves, combined with the mix-hash, that a sufficient amount of computation has been carried out on this block: the Proof-of-Work (PoW). The combination of nonce and mixhash must satisfy a mathematical condition described in the Yellowpaper, 4.3.4. Block Header Validity, (44), and allows to verify that the Block has really been cryptographically mined and thus, from this aspect, is valid. The nonce is the cryptographically secure mining proof-of-work that proves beyond reasonable doubt that a particular amount of computation has been expended in the determination of this token value. (Yellowpager, 11.5. Mining Proof-of-Work).
證明64位雜湊與混合雜湊相結合,在該塊上進行了足夠的計算:工作量證明(PoW)。 nonce和mixhash的組合必須滿足黃皮書4.3.4中描述的數學條件。塊頭有效性,(44),並允許驗證塊確實已經加密地挖掘,因此,從這方面來說,是有效的。 nonce是加密安全的挖掘工作證明,證明在確定該令牌值時已經花費了特定量的計算。 (Yellowpager,11.5。採礦工作證明)。
difficulty
A scalar value corresponding to the difficulty level applied during the nonce discovering of this block. It defines the mining Target, which can be calculated from the previous block’s difficulty level and the timestamp. The higher the difficulty, the statistically more calculations a Miner must perform to discover a valid block. This value is used to control the Block generation time of a Blockchain, keeping the Block generation frequency within a target range. On the test network, we keep this value low to avoid waiting during tests, since the discovery of a valid Block is required to execute a transaction on the Blockchain.
標量值,對應於在該塊的隨機數發現期間應用的難度級別。它定義了挖掘目標,可以根據前一個塊的難度級別和時間戳來計算。難度越高,Miner必須執行的統計更多計算才能發現有效塊。此值用於控制區塊鏈的塊生成時間,將塊生成頻率保持在目標範圍內。在測試網路上,我們將此值保持為低以避免在測試期間等待,因為在區塊鏈上執行事務需要發現有效的塊。
alloc
Allows defining a list of pre-filled wallets. That’s an Ethereum specific functionality to handle the “Ether pre-sale” period.
允許定義預先填充的錢包列表。這是以太坊特定功能,可以處理“乙太網預售”時期。
coinbase
The 160-bit address to which all rewards (in Ether) collected from the successful mining of this block have been transferred. They are a sum of the mining reward itself and the Contract transaction execution refunds. Often named “beneficiary” in the specifications, sometimes “etherbase” in the online documentation. This can be anything in the Genesis Block since the value is set by the setting of the Miner when a new Block is created.
從該塊的成功挖掘中收集的所有獎勵(以太幣)的160位地址已被轉移。它們是採礦獎勵本身和合同交易執行退款的總和。通常在規範中命名為“受益人”,有時在線上文件中稱為“etherbase”。這可以是Genesis Block中的任何內容,因為在建立新Block時,Miner的設定會設定該值。
timestamp
A scalar value equal to the reasonable output of Unix time() function at this block inception. This mechanism enforces a homeostasis in terms of the time between blocks. A smaller period between the last two blocks results in an increase in the difficulty level and thus additional computation required to find the next valid block. If the period is too large, the difficulty, and expected time to the next block, is reduced. The timestamp also allows verifying the order of block within the chain (Yellowpaper, 4.3.4. (43)).
標量值等於此塊開始時Unix time()
函式的合理輸出。該機制在塊之間的時間方面強制實施穩態。最後兩個塊之間的較小週期導致難度級別的增加,從而導致找到下一個有效塊所需的額外計算。如果週期太大,則減少了難度和到下一個塊的預期時間。時間戳還允許驗證鏈內的塊順序(黃皮書,4.3.4。(43))。
parentHash
The Keccak 256-bit hash of the entire parent block header (including its nonce and mixhash). Pointer to the parent block, thus effectively building the chain of blocks. In the case of the Genesis block, and only in this case, it’s 0.
整個父塊頭的Keccak 256位雜湊(包括其nonce和mixhash)。指向父塊的指標,從而有效地構建塊鏈。在Genesis塊的情況下,僅在這種情況下,它為0。
extraData
An optional free, but max. 32-byte long space to conserve smart things for ethernity. :)
可選免費,但最多32位元組長的空間,以保護智慧的東西為ethernity。 :)
gasLimit
A scalar value equal to the current chain-wide limit of Gas expenditure per block. High in our case to avoid being limited by this threshold during tests. Note: this does not indicate that we should not pay attention to the Gas consumption of our Contracts.
標量值等於每塊汽油支出的當前鏈範圍限制。我們的情況需要設定得很高,以避免在測試期間受到此閾值的限制。注意:這並不表示我們不應該關注合同的汽油消耗量。
轉載請註明出處:
http://zgljl2012.com/yi-tai-fang-genesis-jsonpei-zhi-wen-jian-zhong-ge-can-shu-jie-shi/