mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-30 09:05:52 +00:00
Most SQL tables defined but only payment transactions actually implemented. Maven support added. Some code imported from 'old' Qora: RIPEMD160 renamed as BrokenMD160 and deprecated. whispersystem's Ed25519 implementation (to be replaced with bouncycastle). Basic Account/PublicKeyAccount/PrivateKeyAccount code. Some utils like Base58 and Pair. To use: Use maven to fetch dependencies. Build project. Fire up an old-gen Qora node. Run src/test/update.java as a JUnit test to build DB structure. Run src/test/migrate.java as a JUnit test to migrate old Qora blocks to DB. You should now be able to run src/test/load.java and src/test/save.java as JUnit tests demonstrating loading/saving Transactions from/to database. This commit done while halfway through adding Block support!
33 lines
308 B
Java
33 lines
308 B
Java
package utils;
|
|
|
|
public class Pair<T, U> {
|
|
|
|
private T a;
|
|
private U b;
|
|
|
|
public Pair() {
|
|
}
|
|
|
|
public Pair(T a, U b) {
|
|
this.a = a;
|
|
this.b = b;
|
|
}
|
|
|
|
public void setA(T a) {
|
|
this.a = a;
|
|
}
|
|
|
|
public T getA() {
|
|
return a;
|
|
}
|
|
|
|
public void setB(U b) {
|
|
this.b = b;
|
|
}
|
|
|
|
public U getB() {
|
|
return b;
|
|
}
|
|
|
|
}
|