EOS Genesis.json是EOS網絡誕生時生成的一個文件,其中包含了EOS網絡的初始配置信息和初始各類賬戶信息。這個文件會隨著EOS的發展而不斷更新,也是EOS生態系統運作的重要的基礎性文件之一。
下面是一部分Genesis.json文件的代碼,用于描述其中的初始信息:
{ "initial_timestamp": "2018-06-08T08:08:08.888", "initial_key": "EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3", "initial_configuration": { "max_block_net_usage": 1048576, "target_block_net_usage_pct": 10, "max_transaction_net_usage": 524288, "base_per_transaction_net_usage": 12, "net_usage_leeway": 500, "context_free_discount_pct": 20, "max_block_cpu_usage": 100000, "target_block_cpu_usage_pct": 50, "max_transaction_cpu_usage": 50000, "min_transaction_cpu_usage": 100, "max_transaction_lifetime": 3600, "deferred_trx_expiration_window": 600, "max_transaction_delay": 3888000, "max_inline_action_size": 4096, "max_inline_action_depth": 4, "max_authority_depth": 6 }, "initial_chain_id": "0000000000000000000000000000000000000000000000000000000000000000", "initial_account_list": [], "initial_producer_list": [], "initial_ram_kb_per_block": 200, "initial_voting_key": "EOS1111111111111111111111111111111114T1Anm", "initial_producers": [ { "producer_name": "eosio", "block_signing_key": "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV" }, { "producer_name": "eoscanadacom", "block_signing_key": "EOS5BkEzvPY9VYHmqaJL5uN5Rh2GvRMAKjYp34iqDJgRHg3yk6vkA" }, ... ] }
Genesis.json文件中的initial_timestamp指定了EOS網絡的誕生時間,initial_key是網絡初始密鑰,initial_configuration和initial_ram_kb_per_block參數分別配置了區塊鏈網絡的各種限制和內存使用情況。而initial_account_list和initial_producer_list則定義了網絡中的初始用戶和生產者,initial_producers則列出了所有的生產者及其簽名公鑰。
總之,Genesis.json文件中的每一個參數和配置信息都是對EOS網絡的基本規定和限制,保障了網絡的平穩運行和健康發展。
上一篇Vue雙向鏈表結構
下一篇python 服務器接口