minor fix for last push

This commit is contained in:
romanman 2014-06-07 16:39:34 +01:00
parent 9319272a5a
commit 0154ac6a0f
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ public class Transaction {
/* creation contract tx
* [ nonce, gasPrice, gasLimit, 0000000000000000, endowment, init, signature(v, r, s) ]
* 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) {
this.nonce = nonce;

View File

@ -15,7 +15,7 @@ import org.slf4j.LoggerFactory;
/**
* 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:
* Pure Java: https://github.com/dain/leveldb
* 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) {
db.put(key, value);
}
/** Get object (key) -> longValue */
/** Get object (key) -> value */
public byte[] get(byte[] key) {
return db.get(key);
}