cosmetic change

This commit is contained in:
Ștefan Talpalaru 2019-03-31 22:34:11 +02:00
parent 8308db964c
commit 721f6e9c14
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9

View File

@ -51,8 +51,7 @@ method persistBlocks*(c: Chain, headers: openarray[BlockHeader], bodies: openarr
raise newException(Exception, "Validation error. Debugging metadata dumped.")
if validationResult != ValidationResult.OK:
result = validationResult
return
return validationResult
discard c.db.persistHeaderToDb(headers[i])
if c.db.getCanonicalHead().blockHash != headers[i].blockHash: