Skip to content

Instantly share code, notes, and snippets.

@e00dan
Created September 2, 2021 15:54
Show Gist options
  • Save e00dan/7be03450748ed41e3aba81a589d33aa1 to your computer and use it in GitHub Desktop.
Save e00dan/7be03450748ed41e3aba81a589d33aa1 to your computer and use it in GitHub Desktop.
center_id = 0
machine_id = 0
need_sync = false
sync_insert_batch = 5
rpc_thread_num = 3
flush_tx_pool_cache_interval = 300
# Fill cellbase maturity in the same as the ckb genesis block.
cellbase_maturity = 4
cheque_timeout = 6
[db_config]
max_connections = 1000
db_type = "postgres"
db_host = "172.31.59.153"
db_port = 8432
db_name = "mercury"
db_user = "postgres"
password = "123456"
db_path = ""
db_log_level = "WARN"
[log_config]
log_level = "INFO"
use_split_file = false
# The network type reference https://github.com/nervosnetwork/ckb-cli/blob/master/ckb-sdk/src/constants.rs
[network_config]
network_type = "ckb"
ckb_uri = "http://3.235.223.161:8114"
listen_uri = "0.0.0.0:8116"
[[builtin_scripts]]
script_name = "secp256k1_blake160"
script = '''
{
"args": "0x",
"code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
"hash_type": "type"
}
'''
cell_dep = '''
{
"dep_type": "dep_group",
"out_point": {
"index": "0x0",
"tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
}
}
'''
[[builtin_scripts]]
script_name = "sudt"
script = '''
{
"args": "0x",
"code_hash": "0x5e7a36a77e68eecc013dfa2fe6a23f3b6c344b04005808694ae6dd45eea4cfd5",
"hash_type": "type"
}
'''
cell_dep = '''
{
"dep_type": "code",
"out_point": {
"index": "0x0",
"tx_hash": "0xc7813f6a415144643970c2e88e0bb6ca6a8edc5dd7c1022746f628284a9936d5"
}
}
'''
[[builtin_scripts]]
script_name = "anyone_can_pay"
script = '''
{
"args": "0x",
"code_hash": "0xd369597ff47f29fbc0d47d2e3775370d1250b85140c670e4718af712983a2354",
"hash_type": "type"
}
'''
cell_dep = '''
{
"dep_type": "dep_group",
"out_point": {
"index": "0x0",
"tx_hash": "0x4153a2014952d7cac45f285ce9a7c5c0c0e1b21f2d378b82ac1433cb11c25c4d"
}
}
'''
[[builtin_scripts]]
script_name = "cheque"
script = '''
{
"args": "0x",
"code_hash": "0xe4d4ecc6e5f9a059bf2f7a82cca292083aebc0c421566a52484fe2ec51a9fb0c",
"hash_type": "type"
}
'''
cell_dep = '''
{
"dep_type": "dep_group",
"out_point": {
"index": "0x0",
"tx_hash": "0x04632cc459459cf5c9d384b43dee3e36f542a464bdd4127be7d6618ac6f8d268"
}
}
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment