• Conner Fromknecht's avatar
    fix: check for empty block before submitting task in miner · a36e0947
    Conner Fromknecht authored
    Prior to this commit, an empty block would be submitted to the taskCh
    before sanity check whether or not it was empty. This assertion is moved
    up to fail before submitting the task.
    
    It seems the placement of the check before was done to get around the
    StreamUncle unit test, which would allow commit to submit an empty task
    before ultimately failing. Now that the test is modified to reflect the
    expected behavior of the sequencer, this placement is no longer
    necessary.
    a36e0947
Name
Last commit
Last update
..
miner.go Loading commit data...
stress_clique.go Loading commit data...
stress_ethash.go Loading commit data...
unconfirmed.go Loading commit data...
unconfirmed_test.go Loading commit data...
worker.go Loading commit data...
worker_test.go Loading commit data...