Commit 5a438e7
fix: read node certification from NodeStored event payload
nodeStored hardcoded certification to Diy and never read the actual
value from the event payload. Since spec v107, create_node assigns
certification from the farming policy (which can be Certified), but
the processor ignored it. Nodes created under a Certified farming
policy showed as Diy in GraphQL.
Now reads certification from the event for all versions that include
it: certificationType for v28/v43, certification for v63/v105/v118.
The v9 default (Diy) is preserved since v9 Node has no certification
field. This matches the pattern already used in nodeUpdated.
Fixes: #193
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8ff1cc7 commit 5a438e7
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
| |||
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
| |||
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
124 | 137 | | |
125 | 138 | | |
| |||
130 | 143 | | |
131 | 144 | | |
132 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
133 | 149 | | |
134 | 150 | | |
135 | 151 | | |
| |||
0 commit comments