Fix trust score calculation segfault on testNet