This commit is contained in:
Etan Kissling 2024-03-27 16:24:26 +01:00
parent 3376887ba7
commit 986c548b00
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 2 additions and 2 deletions

View File

@ -221,11 +221,11 @@ proc start*(lightClient: LightClient) =
trusted_block_root = lightClient.trustedBlockRoot trusted_block_root = lightClient.trustedBlockRoot
lightClient.manager.start() lightClient.manager.start()
proc stop*(lightClient: LightClient) {.async: (raises: [], raw: true).} = proc stop*(lightClient: LightClient) {.async: (raises: []).} =
if not lightClient.manager.isRunning: if not lightClient.manager.isRunning:
return return
notice "Stopping light client" notice "Stopping light client"
lightClient.manager.stop() await lightClient.manager.stop()
proc resetToFinalizedHeader*( proc resetToFinalizedHeader*(
lightClient: LightClient, lightClient: LightClient,