mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
Fix crash in toString() for an unparsed block header object.
This commit is contained in:
parent
ec1504f9dc
commit
f9a57db818
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ public class Block extends Message {
|
|||
@Override
|
||||
public String toString() {
|
||||
StringBuffer s = new StringBuffer("v" + version + " block: \n" + " previous block: "
|
||||
+ prevBlockHash.toString() + "\n" + " merkle root: " + getMerkleRoot().toString() + "\n"
|
||||
+ getPrevBlockHash().toString() + "\n" + " merkle root: " + getMerkleRoot().toString() + "\n"
|
||||
+ " time: [" + time + "] " + new Date(time * 1000).toString() + "\n"
|
||||
+ " difficulty target (nBits): " + difficultyTarget + "\n" + " nonce: " + nonce + "\n");
|
||||
if (transactions != null && transactions.size() > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue