|
|
|
@ -1,40 +1,40 @@ |
|
|
|
|
package net.consensys.pantheon.consensus.clique.blockcreation; |
|
|
|
|
package tech.pegasys.pantheon.consensus.clique.blockcreation; |
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Java6Assertions.assertThat; |
|
|
|
|
import static org.mockito.ArgumentMatchers.any; |
|
|
|
|
import static org.mockito.Mockito.mock; |
|
|
|
|
import static org.mockito.Mockito.when; |
|
|
|
|
|
|
|
|
|
import net.consensys.pantheon.consensus.clique.CliqueContext; |
|
|
|
|
import net.consensys.pantheon.consensus.clique.CliqueExtraData; |
|
|
|
|
import net.consensys.pantheon.consensus.clique.CliqueHelpers; |
|
|
|
|
import net.consensys.pantheon.consensus.clique.CliqueProtocolSchedule; |
|
|
|
|
import net.consensys.pantheon.consensus.clique.CliqueProtocolSpecs; |
|
|
|
|
import net.consensys.pantheon.consensus.clique.TestHelpers; |
|
|
|
|
import net.consensys.pantheon.consensus.clique.VoteTallyCache; |
|
|
|
|
import net.consensys.pantheon.consensus.common.VoteProposer; |
|
|
|
|
import net.consensys.pantheon.consensus.common.VoteTally; |
|
|
|
|
import net.consensys.pantheon.consensus.common.VoteType; |
|
|
|
|
import net.consensys.pantheon.crypto.SECP256K1.KeyPair; |
|
|
|
|
import net.consensys.pantheon.ethereum.ProtocolContext; |
|
|
|
|
import net.consensys.pantheon.ethereum.chain.GenesisConfig; |
|
|
|
|
import net.consensys.pantheon.ethereum.chain.MutableBlockchain; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.Address; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.AddressHelpers; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.Block; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.BlockBody; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.PendingTransactions; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.Util; |
|
|
|
|
import net.consensys.pantheon.ethereum.core.Wei; |
|
|
|
|
import net.consensys.pantheon.ethereum.db.DefaultMutableBlockchain; |
|
|
|
|
import net.consensys.pantheon.ethereum.db.WorldStateArchive; |
|
|
|
|
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockHashFunction; |
|
|
|
|
import net.consensys.pantheon.ethereum.mainnet.MutableProtocolSchedule; |
|
|
|
|
import net.consensys.pantheon.ethereum.worldstate.KeyValueStorageWorldStateStorage; |
|
|
|
|
import net.consensys.pantheon.services.kvstore.InMemoryKeyValueStorage; |
|
|
|
|
import net.consensys.pantheon.services.kvstore.KeyValueStorage; |
|
|
|
|
import net.consensys.pantheon.util.bytes.BytesValue; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.CliqueContext; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.CliqueExtraData; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.CliqueHelpers; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.CliqueProtocolSchedule; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.CliqueProtocolSpecs; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.TestHelpers; |
|
|
|
|
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache; |
|
|
|
|
import tech.pegasys.pantheon.consensus.common.VoteProposer; |
|
|
|
|
import tech.pegasys.pantheon.consensus.common.VoteTally; |
|
|
|
|
import tech.pegasys.pantheon.consensus.common.VoteType; |
|
|
|
|
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.ProtocolContext; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.chain.GenesisConfig; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.chain.MutableBlockchain; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Address; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.AddressHelpers; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Block; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.BlockBody; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.PendingTransactions; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Util; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.core.Wei; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.db.DefaultMutableBlockchain; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.db.WorldStateArchive; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockHashFunction; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.mainnet.MutableProtocolSchedule; |
|
|
|
|
import tech.pegasys.pantheon.ethereum.worldstate.KeyValueStorageWorldStateStorage; |
|
|
|
|
import tech.pegasys.pantheon.services.kvstore.InMemoryKeyValueStorage; |
|
|
|
|
import tech.pegasys.pantheon.services.kvstore.KeyValueStorage; |
|
|
|
|
import tech.pegasys.pantheon.util.bytes.BytesValue; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|