You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/understanding-config-files.md
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,20 @@ A minimal version of this file looks like this:
53
53
"advertise": false,
54
54
"valency": 1,
55
55
"warmValency": 2,
56
-
"trustable": true
56
+
"trustable": true,
57
+
"diffusionMode": "InitiatorOnly"
58
+
},
59
+
{ "accessPoints": [
60
+
{
61
+
"address": "y.y.y.y",
62
+
"port": 3001
63
+
}
64
+
],
65
+
"advertise": false,
66
+
"valency": 1,
67
+
"warmValency": 2,
68
+
"trustable": true,
69
+
"diffusionMode": "InitiatorAndResponder"
57
70
}
58
71
],
59
72
"publicRoots": [
@@ -90,12 +103,20 @@ A minimal version of this file looks like this:
90
103
Note: one can also use the deprecated now `valency` field for `hotValency`.
91
104
92
105
93
-
-`warmValency` is an optional field, similar to `hotValency`, that informs the node about the number of peers it should maintain as warm.
106
+
*`warmValency` is an optional field, similar to `hotValency`, that informs the node about the number of peers it should maintain as warm.
94
107
This field is optional and defaults to the value set in the `valency` or `hotValency` field.
95
108
If a value is specified for `warmValency`, it should be greater than or equal to the one defined in `hotValency`; otherwise, or `hotValency` will be adjusted to match this value.
96
109
We recommend users set the `warmValency` value to `hotValency + 1` to ensure at least one backup peer is available to be promoted to a hot connection in case of unexpected events.
97
110
Check [this issue](https://github.com/intersectmbo/ouroboros-network/issues/4565) for more context on this `WarmValency` option.
98
111
112
+
*`diffusionMode` is an optional field. It can either be `"InitiatorAndResponder"` (the default value) or `"InitiatorOnly"` (similar to `DiffusionMode` in the configuration file).
113
+
If `"InitiatorOnly"` is set, then all local roots in this group will negotiate initiator-only diffusion mode, e.g. the TCP connection will be used as a unidirectional connection.
114
+
115
+
The topology setting overwrites `DiffusionMode` from the configuration file for given local root peers.
116
+
It is meant to overwrite the diffusion mode when a node is running in `InitiatorAndResponder` mode (the default).
117
+
The other way is also possible, but note that when the option in the configuration file is set to `InitiatorOnly`, the node will not run the accept loop.
118
+
119
+
`diffusionMode` was introduced in `cardano-node-10.2`.
0 commit comments