Skip to content

Gp/tx pool info #62

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

Open
wants to merge 3 commits into
base: v118
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/template/ckb/v118/ckb.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions test_cases/config/test_request_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test_cases/rpc/node_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 9 additions & 0 deletions test_cases/rpc/test_tx_pool_info.py
Original file line number Diff line number Diff line change
@@ -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"
Loading