Skip to content

Commit ea67860

Browse files
author
Sеrgiо Nеmirоwski
committed
ir: add remove_untraceable_blocks
Signed-off-by: Sеrgiо Nеmirоwski <[email protected]>
1 parent 5fbab0d commit ea67860

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/ir.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
| `neofs_ir__blockchain_tls_rpc_local_key` | Path to the :file:`secret/` directory on the Ansible Controller to get TLS key for RPC endpoint from. |
6767
| `neofs_ir__blockchain_p2p_address: ':` | Address for P2P endpoint. |
6868
| `neofs_ir__blockchain_p2p_port` | Port for P2P endpoint. |
69+
| `neofs_ir__blockchain_remove_untraceable_blocks` | Optional flag that denotes whether old blocks should be removed from cache and database. |
6970
| `neofs_ir__blockchain_p2p_allow` | List of IP addresses or subnets that are allowed to connect to the P2P endpoint over the network, configured on all hosts in the Ansible inventory. If no entries are specified, access through the firewall is disabled. |
7071
| `neofs_ir__blockchain_p2p_group_allow` | List of IP addresses or subnets that are allowed to connect to the P2P endpoint over the network, configured on hosts in a specific Ansible inventory group. If no entries are specified, access through the firewall is disabled. |
7172
| `neofs_ir__blockchain_p2p_host_allow` | List of IP addresses or subnets that are allowed to connect to the P2P endpoint over the network, configured on specific hosts in the Ansible inventory. If no entries are specified, access through the firewall is disabled. |

roles/ir/defaults/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ neofs_ir__blockchain_database_path: '{{ neofs_ir__data_dir }}/fschain.bolt'
6464
neofs_ir__blockchain_time_per_block: '15s'
6565
neofs_ir__blockchain_magic: '1'
6666
neofs_ir__blockchain_seed_nodes: []
67+
neofs_ir__blockchain_remove_untraceable_blocks: false
6768

6869
neofs_ir__blockchain_rpc_address: '::'
6970
neofs_ir__blockchain_rpc_port: 30333
@@ -195,6 +196,12 @@ neofs_ir__default_config:
195196
cert_file: '{{ neofs_ir__blockchain_tls_rpc_cert }}'
196197
key_file: '{{ neofs_ir__blockchain_tls_rpc_key }}'
197198

199+
- enabled: '{{ neofs_ir__blockchain_remove_untraceable_blocks }}'
200+
options:
201+
fschain:
202+
consensus:
203+
remove_untraceable_blocks: true
204+
198205
neofs_ir__config: []
199206
neofs_ir__group_config: []
200207
neofs_ir__host_config: []

0 commit comments

Comments
 (0)