use of org.ethereum.core.genesis.InitialAddressState in project rskj by rsksmart.
the class BlockGenerator method generatePreMine.
private Map<RskAddress, InitialAddressState> generatePreMine(Map<byte[], BigInteger> alloc) {
Map<RskAddress, InitialAddressState> premine = new HashMap<>();
for (byte[] key : alloc.keySet()) {
AccountState acctState = new AccountState(BigInteger.valueOf(0), new Coin(alloc.get(key)));
premine.put(new RskAddress(key), new InitialAddressState(acctState, null));
}
return premine;
}
Aggregations