Merge branch 'master' of https://github.com/romanman/ethereumj
This commit is contained in:
commit
cff3395b78
|
@ -1,6 +1,5 @@
|
|||
package org.ethereum.core;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
|
||||
public enum Denomination {
|
||||
|
@ -23,7 +22,7 @@ public enum Denomination {
|
|||
return amount;
|
||||
}
|
||||
|
||||
private static BigInteger newBigInt(double value) {
|
||||
return BigDecimal.valueOf(Math.pow(10, value)).toBigInteger();
|
||||
private static BigInteger newBigInt(int value) {
|
||||
return BigInteger.valueOf(10).pow(value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ public class Genesis extends Block {
|
|||
private static byte[] stateRoot = // TODO: Get stateRoot from actual state
|
||||
Hex.decode("12582945fc5ad12c3e7b67c4fc37a68fc0d52d995bb7f7291ff41a2739a7ca16");
|
||||
private static byte[] txTrieRoot = new byte[0];
|
||||
private static byte[] difficulty = BigInteger.valueOf((long) Math.pow(2, 22)).toByteArray();
|
||||
private static byte[] difficulty = BigInteger.valueOf(2).pow(22).toByteArray();
|
||||
private static long number = 0;
|
||||
private static long minGasPrice = 0;
|
||||
private static long gasLimit = 1000000;
|
||||
|
|
Loading…
Reference in New Issue