Commit b17c82d
refactor(testing): drop dead scheme_name params on key manager (leanEthereum#903)
The key manager only ever operates on the single active scheme from
LEAN_ENV. Two scheme_name parameters were dead weight:
- The constructor default "test" was never relied on — the sole
caller, the shared cache builder, always passed LEAN_ENV. The
default could silently diverge from the active scheme.
- The signing-state reset parameter was never supplied; all callers
invoke it with no argument.
Both now derive the scheme from LEAN_ENV directly. The instance
scheme_name attribute stays, since the on-disk-keys error messages
still reference it (audit finding CORE-02).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ed10c59 commit b17c82d
1 file changed
Lines changed: 10 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 219 | | |
223 | | - | |
| 220 | + | |
224 | 221 | | |
225 | 222 | | |
226 | 223 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
235 | 228 | | |
236 | | - | |
237 | | - | |
238 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
239 | 232 | | |
240 | 233 | | |
241 | 234 | | |
| |||
0 commit comments