Fix #3965 (potential crashes when routing certain gossip messages) (#3978)

This commit is contained in:
zah 2022-08-17 04:47:21 +03:00 committed by GitHub
parent 94a479f1c9
commit fa9e2b4ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -429,7 +429,7 @@ proc routeSignedVoluntaryExit*(
if not res.isGoodForSending:
warn "Voluntary exit failed validation",
exit = shortLog(exit), error = res.error()
return err(res.error()[1])
return err(res.error()[1])
let res = await router[].network.broadcastVoluntaryExit(exit)
if res.isOk():
@ -449,7 +449,7 @@ proc routeAttesterSlashing*(
if not res.isGoodForSending:
warn "Attester slashing failed validation",
slashing = shortLog(slashing), error = res.error()
return err(res.error()[1])
return err(res.error()[1])
let res = await router[].network.broadcastAttesterSlashing(slashing)
if res.isOk():
@ -470,7 +470,7 @@ proc routeProposerSlashing*(
if not res.isGoodForSending:
warn "Proposer slashing request failed validation",
slashing = shortLog(slashing), error = res.error()
return err(res.error()[1])
return err(res.error()[1])
let res = await router[].network.broadcastProposerSlashing(slashing)
if res.isOk():