Fix log formatting.

This commit is contained in:
Manfred Karrer 2017-04-04 13:33:05 -05:00
parent 691177d848
commit 8bb9b8659d
4 changed files with 15 additions and 13 deletions

View file

@ -41,8 +41,8 @@ public class BsqBlockchainManager {
//mainnet
private static final String GENESIS_TX_ID = "cabbf6073aea8f22ec678e973ac30c6d8fc89321011da6a017f63e67b9f66667";
private static final int GENESIS_BLOCK_HEIGHT = 105301;
private static final String REG_TEST_GENESIS_TX_ID = "3bc7bc9484e112ec8ddd1a1c984379819245ac463b9ce40fa8b5bf771c0f9236";
private static final int GENESIS_BLOCK_HEIGHT = 130766;
private static final String REG_TEST_GENESIS_TX_ID = "f56fffd2d25ba1be2649a7d88ee68248d5adcb2e42df03a592b1874e2a04aa62";
private static final int REG_TEST_GENESIS_BLOCK_HEIGHT = 102;
// Modulo of blocks for making snapshots of UTXO.

View file

@ -190,10 +190,10 @@ abstract public class BsqBlockchainService {
}
// Usual values is up to 25
// There are soem blocks where it seems devs have tested many depending txs, but even
// those dont exceed 200 recursions and are old blocks from 2012 or so...
// TOD) check strategy btc core uses (sorting the dependency graph would be an optimisation)
if (recursionCounter > 30) {
// There are some blocks where it seems devs have tested graphs of many depending txs, but even
// those dont exceed 200 recursions and are mostly old blocks from 2012 when fees have been low ;-).
// TODO check strategy btc core uses (sorting the dependency graph would be an optimisation)
if (recursionCounter > 50) {
log.warn("Unusual high recursive calls at resolveConnectedTxs. recursionCounter=" + recursionCounter);
log.warn("txsWithoutInputsFromSameBlock " + txsWithoutInputsFromSameBlock.size());
log.warn("txsWithInputsFromSameBlock " + txsWithInputsFromSameBlock.size());

View file

@ -64,10 +64,10 @@ public class BsqUTXO implements Serializable {
@Override
public String toString() {
return "BsqUTXO{" +
"\n output='" + output + '\'' +
",\n height=" + height +
"\n height=" + height +
",\n isBsqCoinBase=" + isBsqCoinBase +
",\n utxoId='" + utxoId + '\'' +
", \n output=" + output +
"\n}";
}

View file

@ -34,10 +34,12 @@ public class TxOutput implements Serializable {
@Override
public String toString() {
return "TxOutput{" +
"\nindex=" + index +
",\nvalue=" + value +
",\naddresses=" + addresses +
",\nscriptProgramBytes=" + Hex.toHexString(scriptProgramBytes) +
"}\n";
"\n txId=" + txId +
",\n index=" + index +
",\n value=" + value +
",\n addresses=" + addresses +
",\n scriptProgramBytes=" + Hex.toHexString(scriptProgramBytes) +
"\n" +
" }";
}
}