Commit 82bb7b23 authored by Schudel, MJ (Michel)'s avatar Schudel, MJ (Michel)

Added some toString stuff

parent bf40f730
......@@ -197,5 +197,10 @@ public class Blockchain {
}
@Override
public String toString() {
return "Blockchain{" +
"chain=" + chain +
'}';
}
}
......@@ -64,6 +64,8 @@ public class BlockchainService {
if (!blockchainOptional.isPresent()) {
this.blockchain = Blockchain.create();
genericRepository.save(this.blockchain);
} else {
this.blockchain = blockchainOptional.get();
}
}
}
......
......@@ -25,4 +25,11 @@ class Peers {
boolean isEmpty() {
return peers.isEmpty();
}
@Override
public String toString() {
return "Peers{" +
"peers=" + peers +
'}';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment