@Override
public void onSuccess(@Nullable List<UTXOsMessage> val) {
checkNotNull(val);
log.info("Got {} UTXO responses", val.size());
// Verify they are all the same.
UTXOsMessage template = val.get(0);
log.info("Template is: {}", template);
for (UTXOsMessage response : val) {
log.info("response is: {}", response);
if (!response.equals(template)) {
log.error("Got inconsistent UTXO answers from peer: {}", response);