Private-Blockchain
影響時代的參數?
來自官方乙太坊文件:
DAG 每 30000 個塊(一個 100 小時的視窗,稱為一個epoch )完全不同,並且需要一段時間才能生成。
對於難度低得多的私有區塊鏈也是如此嗎?紀元週期是如何計算的?
紀元時間被硬編碼到乙太坊客戶端中。它不是從任何東西派生的,即不受任何參數的影響。該值代表在乙太坊協議上執行的任何區塊鏈(私有或公共)。
DAG 使用以下參數:
"n": 4000055296 * 8 // NUM_BITS, # Size of the dataset (4 Gigabytes); MUST BE MULTIPLE OF 65536 "n_inc": 65536, # Increment in value of n per period; MUST BE MULTIPLE OF 65536 # with epochtime=20000 gives 882 MB growth per year "cache_size": 2500, # Size of the light client's cache (can be chosen by light # client; not part of the algo spec) "diff": 2**14, # Difficulty (adjusted during block evaluation) "epochtime": 100000, # Length of an epoch in blocks (how often the dataset is updated) "k": 1, # Number of parents of a node "w": w, # Used for modular exponentiation hashing "accesses": 200, # Number of dataset accesses during hashimoto "P": SAFE_PRIME_512 # Safe Prime for hashing and random number generation
對於完整的文件和算法:
https://github.com/ethereum/wiki/blob/master/Dagger-Hashimoto.md