more tests fixed

This commit is contained in:
arkpar 2015-07-24 19:53:23 +02:00
parent 14f54abeec
commit fb83d5440e

View File

@ -69,6 +69,7 @@ void mine(State& s, BlockChain const& _bc)
sealer->onSealGenerated([&](bytes const& sealedHeader){ sealed = sealedHeader; }); sealer->onSealGenerated([&](bytes const& sealedHeader){ sealed = sealedHeader; });
sealer->generateSeal(s.info()); sealer->generateSeal(s.info());
sealed.waitNot({}); sealed.waitNot({});
sealer.reset();
s.sealBlock(sealed); s.sealBlock(sealed);
} }
@ -79,6 +80,7 @@ void mine(Ethash::BlockHeader& _bi)
sealer->onSealGenerated([&](bytes const& sealedHeader){ sealed = sealedHeader; }); sealer->onSealGenerated([&](bytes const& sealedHeader){ sealed = sealedHeader; });
sealer->generateSeal(_bi); sealer->generateSeal(_bi);
sealed.waitNot({}); sealed.waitNot({});
sealer.reset();
_bi = Ethash::BlockHeader(sealed, IgnoreSeal, h256{}, HeaderData); _bi = Ethash::BlockHeader(sealed, IgnoreSeal, h256{}, HeaderData);
} }