Commit 0804cc7
committed
fix(quote): count unversioned quote requests on arrival, and say so
The unversioned-quote counter is what ADR-0013 names as the input to the
decision to retire the legacy quote path. It increments when the request
arrives, before validation and before a quote is generated, so a request
the node then refuses is counted too. The log line claimed the opposite,
reporting a running total of quotes "served": a node turning away a
thousand oversized unversioned requests would report having served a
thousand quotes, and that number is meant to decide when the legacy path
can be closed.
Arrival is the right place to count. The question the number answers is
how many clients still cannot declare a settlement version, and a client
whose request failed for an unrelated reason is still one of them and
would still break if the path were retired. So this renames the counter
and rewords the log line to match where it fires, rather than moving the
increment, and records the same in the ADR.
No behavioural change.1 parent 052ee3c commit 0804cc7
2 files changed
Lines changed: 15 additions & 9 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
226 | | - | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
903 | 908 | | |
904 | 909 | | |
905 | 910 | | |
906 | | - | |
| 911 | + | |
907 | 912 | | |
908 | 913 | | |
909 | | - | |
910 | | - | |
| 914 | + | |
| 915 | + | |
911 | 916 | | |
912 | 917 | | |
913 | | - | |
914 | | - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
915 | 921 | | |
916 | 922 | | |
917 | 923 | | |
| |||
0 commit comments