|
|
@ -10,22 +10,21 @@ |
|
|
|
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
|
|
|
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
|
|
|
* specific language governing permissions and limitations under the License. |
|
|
|
* specific language governing permissions and limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package tech.pegasys.pantheon.ethereum.eth.sync.tasks; |
|
|
|
package tech.pegasys.pantheon.ethereum.eth.manager.task; |
|
|
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
|
|
|
|
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Block; |
|
|
|
import tech.pegasys.pantheon.ethereum.core.Block; |
|
|
|
import tech.pegasys.pantheon.ethereum.core.BlockBody; |
|
|
|
import tech.pegasys.pantheon.ethereum.core.BlockBody; |
|
|
|
import tech.pegasys.pantheon.ethereum.core.BlockHeader; |
|
|
|
import tech.pegasys.pantheon.ethereum.core.BlockHeader; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.AbstractPeerTask.PeerTaskResult; |
|
|
|
|
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.EthPeer; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.EthPeer; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.EthProtocolManagerTestUtil; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.EthProtocolManagerTestUtil; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.EthTask; |
|
|
|
|
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.RespondingEthPeer; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.RespondingEthPeer; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.RespondingEthPeer.Responder; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.RespondingEthPeer.Responder; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.ethtaskutils.AbstractMessageTaskTest; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.ethtaskutils.AbstractMessageTaskTest; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.exceptions.EthTaskException; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.exceptions.EthTaskException; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.exceptions.EthTaskException.FailureReason; |
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.exceptions.EthTaskException.FailureReason; |
|
|
|
|
|
|
|
import tech.pegasys.pantheon.ethereum.eth.manager.task.AbstractPeerTask.PeerTaskResult; |
|
|
|
import tech.pegasys.pantheon.util.ExceptionUtils; |
|
|
|
import tech.pegasys.pantheon.util.ExceptionUtils; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.concurrent.CompletableFuture; |
|
|
|
import java.util.concurrent.CompletableFuture; |