mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
more tests fixed
This commit is contained in:
parent
14f54abeec
commit
fb83d5440e
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user