Browse Source

Update Genesis blocks into compliance.

cl-refactor
Gav Wood 10 years ago
parent
commit
2d5d5d3978
  1. 4
      libethereum/CanonBlockChain.cpp
  2. 4
      mix/MixClient.cpp

4
libethereum/CanonBlockChain.cpp

@ -85,8 +85,8 @@ bytes CanonBlockChain::createGenesisBlock()
stateRoot = state.root();
}
block.appendList(16)
<< h256() << EmptyListSHA3 << h160() << stateRoot << EmptyTrie << EmptyTrie << LogBloom() << c_genesisDifficulty << 0 << 1000000 << 0 << (unsigned)0 << string() << h256() << h256() << Nonce(u64(42));
block.appendList(15)
<< h256() << EmptyListSHA3 << h160() << stateRoot << EmptyTrie << EmptyTrie << LogBloom() << c_genesisDifficulty << 0 << 1000000 << 0 << (unsigned)0 << string() << h256() << Nonce(u64(42));
block.appendRaw(RLPEmptyList);
block.appendRaw(RLPEmptyList);
return block.out();

4
mix/MixClient.cpp

@ -54,10 +54,10 @@ public:
static bytes createGenesisBlock(h256 _stateRoot)
{
RLPStream block(3);
block.appendList(16)
block.appendList(15)
<< h256() << EmptyListSHA3 << h160() << _stateRoot << EmptyTrie << EmptyTrie
<< LogBloom() << c_mixGenesisDifficulty << 0 << 1000000 << 0 << (unsigned)0
<< std::string() << h256() << h256() << h64(u64(42));
<< std::string() << h256() << h64(u64(42));
block.appendRaw(RLPEmptyList);
block.appendRaw(RLPEmptyList);
return block.out();

Loading…
Cancel
Save