mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-12 02:05:50 +00:00
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
|
# Support optional, per-session HSQLDB debugging
|
||||||
logger.hsqldbRepository.name = org.qora.repository.hsqldb
|
logger.hsqldbRepository.name = org.qora.repository.hsqldb
|
||||||
logger.hsqldbRepository.level = trace
|
logger.hsqldbRepository.level = debug
|
||||||
|
|
||||||
# Suppress extraneous Jersey warning
|
# Suppress extraneous Jersey warning
|
||||||
logger.jerseyInject.name = org.glassfish.jersey.internal.inject.Providers
|
logger.jerseyInject.name = org.glassfish.jersey.internal.inject.Providers
|
||||||
|
@ -77,8 +77,7 @@ public class OrderData implements Comparable<OrderData> {
|
|||||||
if (this.haveAssetName == null)
|
if (this.haveAssetName == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// 'old' pricing scheme is simpler so test for that first
|
// TODO: fill in for 'old' pricing scheme
|
||||||
// XXX TODO
|
|
||||||
|
|
||||||
// 'new' pricing scheme
|
// 'new' pricing scheme
|
||||||
if (this.haveAssetId < this.wantAssetId) {
|
if (this.haveAssetId < this.wantAssetId) {
|
||||||
|
@ -35,7 +35,7 @@ public class HSQLDBATRepository implements ATRepository {
|
|||||||
long creation = resultSet.getTimestamp(2, Calendar.getInstance(HSQLDBRepository.UTC)).getTime();
|
long creation = resultSet.getTimestamp(2, Calendar.getInstance(HSQLDBRepository.UTC)).getTime();
|
||||||
int version = resultSet.getInt(3);
|
int version = resultSet.getInt(3);
|
||||||
long assetId = resultSet.getLong(4);
|
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);
|
boolean isSleeping = resultSet.getBoolean(6);
|
||||||
|
|
||||||
Integer sleepUntilHeight = resultSet.getInt(7);
|
Integer sleepUntilHeight = resultSet.getInt(7);
|
||||||
@ -74,7 +74,7 @@ public class HSQLDBATRepository implements ATRepository {
|
|||||||
long creation = resultSet.getTimestamp(3, Calendar.getInstance(HSQLDBRepository.UTC)).getTime();
|
long creation = resultSet.getTimestamp(3, Calendar.getInstance(HSQLDBRepository.UTC)).getTime();
|
||||||
int version = resultSet.getInt(4);
|
int version = resultSet.getInt(4);
|
||||||
long assetId = resultSet.getLong(5);
|
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);
|
boolean isSleeping = resultSet.getBoolean(7);
|
||||||
|
|
||||||
Integer sleepUntilHeight = resultSet.getInt(8);
|
Integer sleepUntilHeight = resultSet.getInt(8);
|
||||||
|
@ -124,14 +124,7 @@ public class HSQLDBAccountRepository implements AccountRepository {
|
|||||||
if (publicKey != null)
|
if (publicKey != null)
|
||||||
saveHelper.bind("public_key", publicKey);
|
saveHelper.bind("public_key", publicKey);
|
||||||
|
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
boolean priorDebug = this.repository.getDebug();
|
|
||||||
this.repository.setDebug(true);
|
|
||||||
|
|
||||||
saveHelper.execute(this.repository);
|
saveHelper.execute(this.repository);
|
||||||
|
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
this.repository.setDebug(priorDebug);
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to ensure minimal account in repository", 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);
|
saveHelper.bind("public_key", publicKey);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
boolean priorDebug = this.repository.getDebug();
|
|
||||||
this.repository.setDebug(true);
|
|
||||||
|
|
||||||
saveHelper.execute(this.repository);
|
saveHelper.execute(this.repository);
|
||||||
|
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
this.repository.setDebug(priorDebug);
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to save account's last reference into repository", 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);
|
saveHelper.bind("public_key", publicKey);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
boolean priorDebug = this.repository.getDebug();
|
|
||||||
this.repository.setDebug(true);
|
|
||||||
|
|
||||||
saveHelper.execute(this.repository);
|
saveHelper.execute(this.repository);
|
||||||
|
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
this.repository.setDebug(priorDebug);
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to save account's default group ID into repository", 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);
|
saveHelper.bind("public_key", publicKey);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
boolean priorDebug = this.repository.getDebug();
|
|
||||||
this.repository.setDebug(true);
|
|
||||||
|
|
||||||
saveHelper.execute(this.repository);
|
saveHelper.execute(this.repository);
|
||||||
|
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
this.repository.setDebug(priorDebug);
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to save account's flags into repository", 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);
|
saveHelper.bind("public_key", publicKey);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
boolean priorDebug = this.repository.getDebug();
|
|
||||||
this.repository.setDebug(true);
|
|
||||||
|
|
||||||
saveHelper.execute(this.repository);
|
saveHelper.execute(this.repository);
|
||||||
|
|
||||||
// XXX TMP DEBUGGING
|
|
||||||
this.repository.setDebug(priorDebug);
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new DataException("Unable to save account's forging enabler into repository", e);
|
throw new DataException("Unable to save account's forging enabler into repository", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user