mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-01 12:31:23 +00:00
Block: Print hash in toString().
This commit is contained in:
@@ -286,7 +286,7 @@ public abstract class AbstractBlockChain {
|
||||
} catch (BlockStoreException e1) {
|
||||
throw new RuntimeException(e1);
|
||||
}
|
||||
throw new VerificationException("Could not verify block " + block.getHashAsString() + "\n" +
|
||||
throw new VerificationException("Could not verify block:\n" +
|
||||
block.toString(), e);
|
||||
}
|
||||
}
|
||||
|
@@ -592,6 +592,7 @@ public class Block extends Message {
|
||||
public String toString() {
|
||||
StringBuilder s = new StringBuilder();
|
||||
s.append(" block: \n");
|
||||
s.append(" hash: ").append(getHashAsString());
|
||||
s.append(" version: ").append(version);
|
||||
String bips = Joiner.on(", ").skipNulls().join(isBIP34() ? "BIP34" : null, isBIP66() ? "BIP66" : null,
|
||||
isBIP65() ? "BIP65" : null);
|
||||
|
Reference in New Issue
Block a user