mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-25 18:05:15 +00:00
minor fix for last push
This commit is contained in:
parent
9319272a5a
commit
0154ac6a0f
@ -77,7 +77,7 @@ public class Transaction {
|
|||||||
/* creation contract tx
|
/* creation contract tx
|
||||||
* [ nonce, gasPrice, gasLimit, 0000000000000000, endowment, init, signature(v, r, s) ]
|
* [ nonce, gasPrice, gasLimit, 0000000000000000, endowment, init, signature(v, r, s) ]
|
||||||
* or simple send tx
|
* or simple send tx
|
||||||
* [ nonce, gasPrice, gasLimit, receiveAddress, longValue, data, signature(v, r, s) ]
|
* [ nonce, gasPrice, gasLimit, receiveAddress, value, data, signature(v, r, s) ]
|
||||||
*/
|
*/
|
||||||
public Transaction(byte[] nonce, byte[] gasPrice, byte[] gasLimit, byte[] receiveAddress, byte[] value, byte[] data) {
|
public Transaction(byte[] nonce, byte[] gasPrice, byte[] gasLimit, byte[] receiveAddress, byte[] value, byte[] data) {
|
||||||
this.nonce = nonce;
|
this.nonce = nonce;
|
||||||
|
@ -15,7 +15,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
/**
|
/**
|
||||||
* Generic interface for Ethereum database
|
* Generic interface for Ethereum database
|
||||||
*
|
*
|
||||||
* LevelDB key/longValue pair DB implementation will be used.
|
* LevelDB key/value pair DB implementation will be used.
|
||||||
* Choice must be made between:
|
* Choice must be made between:
|
||||||
* Pure Java: https://github.com/dain/leveldb
|
* Pure Java: https://github.com/dain/leveldb
|
||||||
* JNI binding: https://github.com/fusesource/leveldbjni
|
* JNI binding: https://github.com/fusesource/leveldbjni
|
||||||
@ -60,12 +60,12 @@ public class Database {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Insert object(longValue) (key = sha3(longValue)) */
|
/** Insert object(value) (key = sha3(value)) */
|
||||||
public void put(byte[] key, byte[] value) {
|
public void put(byte[] key, byte[] value) {
|
||||||
db.put(key, value);
|
db.put(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get object (key) -> longValue */
|
/** Get object (key) -> value */
|
||||||
public byte[] get(byte[] key) {
|
public byte[] get(byte[] key) {
|
||||||
return db.get(key);
|
return db.get(key);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user