diff --git a/source/template/ckb/v118/ckb.toml.j2 b/source/template/ckb/v118/ckb.toml.j2 index 25f6536..dbbdbe2 100644 --- a/source/template/ckb/v118/ckb.toml.j2 +++ b/source/template/ckb/v118/ckb.toml.j2 @@ -201,7 +201,7 @@ request_limit = {{ ckb_request_limit | default("400") }} # init_tip_hash = "0x8fbd0ec887159d2814cee475911600e3589849670f5ee1ed9798b38fdeef4e44" # # # CKB rich-indexer has its unique configuration. -#[indexer_v2.rich_indexer] +# [indexer_v2.rich_indexer] # # By default, it uses an embedded SQLite database. # # Alternatively, you can set up a PostgreSQL database service and provide the connection parameters. # db_type = "postgres" diff --git a/test_cases/config/test_request_limit.py b/test_cases/config/test_request_limit.py index fe794e8..5e29cf8 100644 --- a/test_cases/config/test_request_limit.py +++ b/test_cases/config/test_request_limit.py @@ -21,6 +21,7 @@ def teardown_class(cls): cls.node.stop() cls.node.clean() + def test_request_limit(self): """ 1. change ckb_request_limit = 10 in ckb.toml @@ -39,6 +40,7 @@ def test_request_limit(self): with pytest.raises(Exception) as exc_info: self.node.getClient().get_cells( { + "script": { "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8", "hash_type": "type", diff --git a/test_cases/rpc/node_fixture.py b/test_cases/rpc/node_fixture.py index bbd6121..4e73a23 100644 --- a/test_cases/rpc/node_fixture.py +++ b/test_cases/rpc/node_fixture.py @@ -37,7 +37,7 @@ def get_cluster(): def get_cluster_indexer(): nodes = [ CkbNode.init_dev_by_port( - CkbNodeConfigPath.v115, + CkbNodeConfigPath.CURRENT_TEST, "cluster_indexer/node{i}".format(i=i), 8114 + i, 8225 + i, diff --git a/test_cases/rpc/test_tx_pool_info.py b/test_cases/rpc/test_tx_pool_info.py new file mode 100644 index 0000000..7ba3e7d --- /dev/null +++ b/test_cases/rpc/test_tx_pool_info.py @@ -0,0 +1,9 @@ +from test_cases.rpc.node_fixture import get_cluster_indexer + + +class TestTxPoolInfo: + + def test_tx_pool_info(self, get_cluster_indexer): + cluster = get_cluster_indexer + pool_info = cluster.ckb_nodes[0].getClient().tx_pool_info() + assert pool_info["verify_queue_size"] == "0x0"