|
1 | 1 | # beacon_chain |
2 | | -# Copyright (c) 2018-2024 Status Research & Development GmbH |
| 2 | +# Copyright (c) 2018-2025 Status Research & Development GmbH |
3 | 3 | # Licensed and distributed under either of |
4 | 4 | # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). |
5 | 5 | # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). |
@@ -115,8 +115,7 @@ proc init*( |
115 | 115 |
|
116 | 116 | proc loadUnchecked*( |
117 | 117 | T: type SlashingProtectionDB, |
118 | | - basePath, dbname: string, readOnly: bool |
119 | | - ): SlashingProtectionDB {.raises:[IOError].}= |
| 118 | + basePath, dbname: string, readOnly: bool): SlashingProtectionDB = |
120 | 119 | ## Load a slashing protection DB |
121 | 120 | ## Note: This is for CLI tool usage |
122 | 121 | ## this doesn't check the genesis validator root |
@@ -282,12 +281,10 @@ proc registerSyntheticAttestation*(db: SlashingProtectionDB, |
282 | 281 | source, target: Epoch) = |
283 | 282 | db.db_v2.registerSyntheticAttestation(validator, source, target) |
284 | 283 |
|
285 | | -proc inclSPDIR*(db: SlashingProtectionDB, spdir: SPDIR): SlashingImportStatus |
286 | | - {.raises: [SerializationError, IOError].} = |
| 284 | +proc inclSPDIR*(db: SlashingProtectionDB, spdir: SPDIR): SlashingImportStatus = |
287 | 285 | db.db_v2.inclSPDIR(spdir) |
288 | 286 |
|
289 | | -proc toSPDIR*(db: SlashingProtectionDB): SPDIR |
290 | | - {.raises: [IOError].} = |
| 287 | +proc toSPDIR*(db: SlashingProtectionDB): SPDIR = |
291 | 288 | db.db_v2.toSPDIR() |
292 | 289 |
|
293 | 290 | proc exportSlashingInterchange*( |
|
0 commit comments