Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-07-28 21:33:49 +02:00
parent da4bc44032
commit b488012d5f
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -410,6 +410,7 @@ func tallyGasCharges(charges map[string]*stats, et types.ExecutionTrace) {
}
tt := float64(gc.TimeTaken.Nanoseconds())
if name == "OnVerifyPost" && tt > 2e9 {
log.Warnf("Skipping abnormally long OnVerifyPost: %fs", tt/1e9)
// discard initial very long OnVerifyPost
continue
}