Revert "Make sure to produce full blocks."

This reverts commit b12d5920b2.
This commit is contained in:
Tomasz Drwięga
2018-07-13 14:23:54 +02:00
parent 5235a6ab03
commit af1b4a82f3
4 changed files with 2 additions and 14 deletions

View File

@@ -289,18 +289,11 @@ impl Engine<EthereumMachine> for Arc<Ethash> {
self.machine.note_rewards(block, &[(author, result_block_reward)], &uncle_rewards)
}
#[cfg(not(feature = "miner-debug"))]
fn verify_local_seal(&self, header: &Header) -> Result<(), Error> {
self.verify_block_basic(header)
.and_then(|_| self.verify_block_unordered(header))
}
#[cfg(feature = "miner-debug")]
fn verify_local_seal(&self, _header: &Header) -> Result<(), Error> {
warn!("Skipping seal verification, running in miner testing mode.");
Ok(())
}
fn verify_block_basic(&self, header: &Header) -> Result<(), Error> {
// check the seal fields.
let seal = Seal::parse_seal(header.seal())?;