Browse Source

New addresses whack existing.

cl-refactor
Gav Wood 10 years ago
parent
commit
10f3655270
  1. 2
      libethereum/State.cpp

2
libethereum/State.cpp

@ -1138,8 +1138,6 @@ h160 State::create(Address _sender, u256 _endowment, u256 _gasPrice, u256* _gas,
}
Address newAddress = right160(sha3(rlpList(_sender, transactionsFrom(_sender) - 1)));
while (addressInUse(newAddress))
newAddress = (u160)newAddress + 1;
// Set up new account...
m_cache[newAddress] = AddressState(0, balance(newAddress) + _endowment, h256(), h256());

Loading…
Cancel
Save