forked from paritytech/polkadot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhost_functions.md.tera
More file actions
42 lines (34 loc) · 1.34 KB
/
host_functions.md.tera
File metadata and controls
42 lines (34 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{%- import "change.md.tera" as m_c -%}
{%- set_global host_fn_count = 0 -%}
{%- set_global upgrade_first = 0 -%}
{% for pr in changes | sort(attribute="merged_at") -%}
{%- if pr.meta.B and pr.meta.B.B0 -%}
{#- We skip silent ones -#}
{%- else -%}
{%- if pr.meta.E and pr.meta.E.E3 -%}
{%- set_global host_fn_count = host_fn_count + 1 -%}
- {{ m_c::change(c=pr) }}
{% endif -%}
{% endif -%}
{%- if pr.meta.E and pr.meta.E.E4 -%}
{%- set_global upgrade_first = upgrade_first + 1 -%}
- {{ m_c::change(c=pr) }}
{% endif -%}
{% endif -%}
{%- endfor -%}
<!-- {{ upgrade_first }} changes require node upgrade -->
{%- if upgrade_first != 0 %}
## Node upgrade required
⚠️ There is a runtime change that will require nodes to be upgraded BEFORE the runtime upgrade.
⚠️ It is critical that you update your client before the chain switches to the new runtime.
{%- endif %}
<!-- {{ host_fn_count }} host functions were detected -->
## Host functions
{% if host_fn_count == 0 %}
ℹ️ This release does not contain any new host functions.
{% elif host_fn_count == 1 -%}
{# ---- #}
ℹ️ The runtimes in this release contain one new **host function**.
{%- else -%}
ℹ️ The runtimes in this release contain {{ host_fn_count }} new **host function{{ host_fn_count | pluralize }}**.
{%- endif %}