Browse Source

fixed more tests

cl-refactor
arkpar 10 years ago
parent
commit
acdf3e2630
  1. 6
      test/TestHelper.cpp
  2. 2
      test/libethereum/ClientBase.cpp

6
test/TestHelper.cpp

@ -79,7 +79,7 @@ void mine(Ethash::BlockHeader& _bi)
sealer->onSealGenerated([&](bytes const& sealedHeader){ sealed = sealedHeader; });
sealer->generateSeal(_bi);
sealed.waitNot({});
_bi = Ethash::BlockHeader(sealed);
_bi = Ethash::BlockHeader(sealed, IgnoreSeal, h256{}, HeaderData);
}
}
@ -841,7 +841,7 @@ dev::eth::Ethash::BlockHeader constructHeader(
rlpStream << _parentHash << _sha3Uncles << _coinbaseAddress << _stateRoot << _transactionsRoot << _receiptsRoot << _logBloom
<< _difficulty << _number << _gasLimit << _gasUsed << _timestamp << _extraData << h256{} << Nonce{};
return Ethash::BlockHeader(rlpStream.out());
return Ethash::BlockHeader(rlpStream.out(), IgnoreSeal, h256{}, HeaderData);
}
void updateEthashSeal(dev::eth::Ethash::BlockHeader& _header, h256 const& _mixHash, dev::eth::Nonce const& _nonce)
@ -855,7 +855,7 @@ void updateEthashSeal(dev::eth::Ethash::BlockHeader& _header, h256 const& _mixHa
header << sourceRlp[i];
header << _mixHash << _nonce;
_header = Ethash::BlockHeader(header.out());
_header = Ethash::BlockHeader(header.out(), IgnoreSeal, h256{}, HeaderData);
}
namespace

2
test/libethereum/ClientBase.cpp

@ -140,7 +140,7 @@ BOOST_AUTO_TEST_CASE(blocks)
ETH_CHECK_EQUAL(expectedBlockInfoUncldeHash, _blockInfo.sha3Uncles());
};
Ethash::BlockHeader blockInfo((static_cast<FixedClient&>(_client)).bc().headerData(blockHash));
Ethash::BlockHeader blockInfo((static_cast<FixedClient&>(_client)).bc().headerData(blockHash), IgnoreSeal, h256{}, HeaderData);
compareBlockInfos(blockHeader, blockInfo);
// blockDetails

Loading…
Cancel
Save