Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: builtin consensus config and binaries #946

Merged
merged 15 commits into from
Jan 15, 2023

Conversation

jjyr
Copy link
Collaborator

@jjyr jjyr commented Jan 11, 2023

  1. Store builtin binaries into https://github.com/godwokenrises/godwoken-builtin-binaries
  2. Add a GitHub workflow to push binaries. See README.md to learn how to add new binaries.
  3. Refactor config, separate consensus configs from node config, and builtin mainnet and testnet consensus config to reduce DevOps work.
  4. Build godwoken built-in binaries into the bin; this increases the godwoken bin from 44MB to 54MB.

Generated example.

node_mode = 'readonly'
contract_log_config = 'verbose'

[consensus]
builtin = 'Testnet'

[rpc_client]
ckb_url = ''

[rpc_server]
listen = ''
enable_methods = []

[debug]
output_l1_tx_cycles = true
expected_l1_tx_upper_bound_cycles = 350000000
debug_tx_dump_path = 'debug-tx-dump'
enable_debug_rpc = false

[block_producer]
check_mem_block_before_submit = false
fee_rate = 1000
local_limit = 5
submitted_limit = 5
block_interval_secs = 8

[block_producer.block_producer]
address_type = 'Eth'
address = '0x'
[block_producer.challenger_config.rewards_receiver_lock]
code_hash = '0x0000000000000000000000000000000000000000000000000000000000000000'
hash_type = 'data'
args = '0x'

[mem_pool]
execute_l2tx_max_cycles = 100000000
restore_path = 'mem_block'

[mem_pool.mem_block]
max_deposits = 100
max_withdrawals = 100
max_txs = 1000
deposit_block_timeout = 150
deposit_timestamp_timeout = 1200000
deposit_epoch_timeout = 1
deposit_minimal_blocks = 0
max_cycles_limit = '18446744073709551615'

[mem_pool.extra]
allowed_sudt_proxy_creator_account_id = []
sudt_proxy_code_hashes = []

[store]
path = ''

[sync_server]
buffer_capacity = 16
broadcast_channel_capacity = 1024

crates/builtin-binaries/build.rs Outdated Show resolved Hide resolved
@jjyr jjyr force-pushed the adjust-config branch 2 times, most recently from 38a3dc2 to 35e8f73 Compare January 11, 2023 16:41
@jjyr jjyr requested a review from Flouse January 11, 2023 17:01
@Flouse Flouse added the enhancement New feature or request label Jan 12, 2023
@jjyr jjyr force-pushed the adjust-config branch 2 times, most recently from a643a73 to 9027077 Compare January 12, 2023 10:51
@jjyr jjyr requested a review from blckngm January 12, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants