From fc8a36d6736b4450afa3a8c590477755f102f7e8 Mon Sep 17 00:00:00 2001 From: Lance Vincent Salera Date: Thu, 13 Feb 2025 01:03:51 +0800 Subject: [PATCH] docs: update configuration documentation and config.toml for fanout --- docs/app/configuration/page.mdx | 6 ++++++ examples/.gitignore | 4 +++- examples/config.toml | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/app/configuration/page.mdx b/docs/app/configuration/page.mdx index 42b823b..44a4ea5 100644 --- a/docs/app/configuration/page.mdx +++ b/docs/app/configuration/page.mdx @@ -24,6 +24,8 @@ peers = [ "Node:3001", "Node:3001", ] +desired_peer_count = 10 +peers_per_request = 10 [monitor] retry_slot_diff = 1000 @@ -63,8 +65,12 @@ The `peer_manager` section defines the options that the peer manager uses to con | property | type | example | | -------------- | ------ | ---------------------------- | | peers | array | [ "Node:3001", "Node:3001" ] | +| desired_peer_count | number | 10 | +| peers_per_request | number | 10 | - `peers`: The peers address (`DNS or IP:PORT`) to connect to the Cardano Node and to propagate transactions. +- `desired_peer_count`: The maximum allowable number of peer client connections. +- `peers_per_request`: The maximum number of peers that the peer client will request via peer sharing mini-protocol. ### `monitor` section diff --git a/examples/.gitignore b/examples/.gitignore index 6bbbbe6..adc9a72 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -2,4 +2,6 @@ payment.* cardano-cli tx.raw -tx.signed \ No newline at end of file +tx.signed + +/js/node_modules/ \ No newline at end of file diff --git a/examples/config.toml b/examples/config.toml index 6b8e086..f9f63c0 100644 --- a/examples/config.toml +++ b/examples/config.toml @@ -9,6 +9,8 @@ peers = [ "Node:3001", "Node:3001", ] +desired_peer_count = 10 +peers_per_request = 10 [monitor] # old tx inflight will be retried when reach a value bigger than retry_slot_diff