forked from Qortal/qortal
Remove unneeded HSQLDB debugging and tidy some comments
This commit is contained in:
parent
a316b8a810
commit
882d910631
@ -12,7 +12,7 @@ logger.hsqldb.level = warn
|
||||
|
||||
# Support optional, per-session HSQLDB debugging
|
||||
logger.hsqldbRepository.name = org.qora.repository.hsqldb
|
||||
logger.hsqldbRepository.level = trace
|
||||
logger.hsqldbRepository.level = debug
|
||||
|
||||
# Suppress extraneous Jersey warning
|
||||
logger.jerseyInject.name = org.glassfish.jersey.internal.inject.Providers
|
||||
|
@ -77,8 +77,7 @@ public class OrderData implements Comparable<OrderData> {
|
||||
if (this.haveAssetName == null)
|
||||
return;
|
||||
|
||||
// 'old' pricing scheme is simpler so test for that first
|
||||
// XXX TODO
|
||||
// TODO: fill in for 'old' pricing scheme
|
||||
|
||||
// 'new' pricing scheme
|
||||
if (this.haveAssetId < this.wantAssetId) {
|
||||
|
@ -35,7 +35,7 @@ public class HSQLDBATRepository implements ATRepository {
|
||||
long creation = resultSet.getTimestamp(2, Calendar.getInstance(HSQLDBRepository.UTC)).getTime();
|
||||
int version = resultSet.getInt(3);
|
||||
long assetId = resultSet.getLong(4);
|
||||
byte[] codeBytes = resultSet.getBytes(5); // XXX: Actually BLOB
|
||||
byte[] codeBytes = resultSet.getBytes(5); // Actually BLOB
|
||||
boolean isSleeping = resultSet.getBoolean(6);
|
||||
|
||||
Integer sleepUntilHeight = resultSet.getInt(7);
|
||||
@ -74,7 +74,7 @@ public class HSQLDBATRepository implements ATRepository {
|
||||
long creation = resultSet.getTimestamp(3, Calendar.getInstance(HSQLDBRepository.UTC)).getTime();
|
||||
int version = resultSet.getInt(4);
|
||||
long assetId = resultSet.getLong(5);
|
||||
byte[] codeBytes = resultSet.getBytes(6); // XXX: Actually BLOB
|
||||
byte[] codeBytes = resultSet.getBytes(6); // Actually BLOB
|
||||
boolean isSleeping = resultSet.getBoolean(7);
|
||||
|
||||
Integer sleepUntilHeight = resultSet.getInt(8);
|
||||
|
@ -124,14 +124,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
if (publicKey != null)
|
||||
saveHelper.bind("public_key", publicKey);
|
||||
|
||||
// XXX TMP DEBUGGING
|
||||
boolean priorDebug = this.repository.getDebug();
|
||||
this.repository.setDebug(true);
|
||||
|
||||
saveHelper.execute(this.repository);
|
||||
|
||||
// XXX TMP DEBUGGING
|
||||
this.repository.setDebug(priorDebug);
|
||||
} catch (SQLException e) {
|
||||
throw new DataException("Unable to ensure minimal account in repository", e);
|
||||
}
|
||||
@ -148,14 +141,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
saveHelper.bind("public_key", publicKey);
|
||||
|
||||
try {
|
||||
// XXX TMP DEBUGGING
|
||||
boolean priorDebug = this.repository.getDebug();
|
||||
this.repository.setDebug(true);
|
||||
|
||||
saveHelper.execute(this.repository);
|
||||
|
||||
// XXX TMP DEBUGGING
|
||||
this.repository.setDebug(priorDebug);
|
||||
} catch (SQLException e) {
|
||||
throw new DataException("Unable to save account's last reference into repository", e);
|
||||
}
|
||||
@ -172,14 +158,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
saveHelper.bind("public_key", publicKey);
|
||||
|
||||
try {
|
||||
// XXX TMP DEBUGGING
|
||||
boolean priorDebug = this.repository.getDebug();
|
||||
this.repository.setDebug(true);
|
||||
|
||||
saveHelper.execute(this.repository);
|
||||
|
||||
// XXX TMP DEBUGGING
|
||||
this.repository.setDebug(priorDebug);
|
||||
} catch (SQLException e) {
|
||||
throw new DataException("Unable to save account's default group ID into repository", e);
|
||||
}
|
||||
@ -196,14 +175,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
saveHelper.bind("public_key", publicKey);
|
||||
|
||||
try {
|
||||
// XXX TMP DEBUGGING
|
||||
boolean priorDebug = this.repository.getDebug();
|
||||
this.repository.setDebug(true);
|
||||
|
||||
saveHelper.execute(this.repository);
|
||||
|
||||
// XXX TMP DEBUGGING
|
||||
this.repository.setDebug(priorDebug);
|
||||
} catch (SQLException e) {
|
||||
throw new DataException("Unable to save account's flags into repository", e);
|
||||
}
|
||||
@ -220,14 +192,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
||||
saveHelper.bind("public_key", publicKey);
|
||||
|
||||
try {
|
||||
// XXX TMP DEBUGGING
|
||||
boolean priorDebug = this.repository.getDebug();
|
||||
this.repository.setDebug(true);
|
||||
|
||||
saveHelper.execute(this.repository);
|
||||
|
||||
// XXX TMP DEBUGGING
|
||||
this.repository.setDebug(priorDebug);
|
||||
} catch (SQLException e) {
|
||||
throw new DataException("Unable to save account's forging enabler into repository", e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user