mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 21:17:54 -05:00
changed all the imports to tech.pegasys packaging
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
This commit is contained in:
committed by
Chris Mckay
parent
f6ed2d3d02
commit
cf66277a57
@@ -4,7 +4,7 @@ FROM openjdk:8-jdk
|
||||
|
||||
# copy application (with libraries inside)
|
||||
ADD build/install/pantheon /opt/pantheon/
|
||||
ADD integration-tests/src/test/resources/net/consensys/pantheon/tests/cluster/docker/geth/genesis.json /opt/pantheon/genesis.json
|
||||
ADD integration-tests/src/test/resources/tech/pegasys/pantheon/tests/cluster/docker/geth/genesis.json /opt/pantheon/genesis.json
|
||||
|
||||
# List Exposed Ports
|
||||
EXPOSE 8084 8545 30303 30303/udp
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.tests.acceptance;
|
||||
package tech.pegasys.pantheon.tests.acceptance;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
import static org.web3j.utils.Convert.Unit.ETHER;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.tests.acceptance;
|
||||
package tech.pegasys.pantheon.tests.acceptance;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package net.consensys.pantheon.tests.acceptance;
|
||||
package tech.pegasys.pantheon.tests.acceptance;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonRpcDisabledNode;
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.patheonNodeWithRpcApis;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.catchThrowable;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonRpcDisabledNode;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.patheonNodeWithRpcApis;
|
||||
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration.RpcApis;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration.RpcApis;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.account.Accounts;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.Cluster;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.account.Accounts;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.Cluster;
|
||||
|
||||
import org.junit.After;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.Cluster;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.Cluster;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
public class JsonRpc {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.account;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.account;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.PrivateKey;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.util.bytes.Bytes32;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.PrivateKey;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.util.bytes.Bytes32;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.account;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.account;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.WaitUtils.waitFor;
|
||||
import static org.apache.logging.log4j.LogManager.getLogger;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.web3j.utils.Convert.Unit.ETHER;
|
||||
import static org.web3j.utils.Convert.toWei;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.WaitUtils.waitFor;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.WaitUtils.waitFor;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.web3j.utils.Convert.toWei;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.WaitUtils.waitFor;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.WaitUtils;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.WaitUtils;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import static org.apache.logging.log4j.LogManager.getLogger;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
@@ -6,13 +6,13 @@ import static org.assertj.core.api.Assertions.catchThrowable;
|
||||
import static org.web3j.protocol.core.DefaultBlockParameterName.LATEST;
|
||||
import static org.web3j.utils.Numeric.toHexString;
|
||||
|
||||
import net.consensys.pantheon.controller.KeyPairUtil;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.websocket.WebSocketConfiguration;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import tech.pegasys.pantheon.controller.KeyPairUtil;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.websocket.WebSocketConfiguration;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import net.consensys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import net.consensys.pantheon.ethereum.core.MiningParametersTestBuilder;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration.RpcApis;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.websocket.WebSocketConfiguration;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import tech.pegasys.pantheon.ethereum.core.MiningParametersTestBuilder;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration.RpcApis;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.websocket.WebSocketConfiguration;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ServerSocket;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Files;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration.RpcApis;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.JsonRpcConfiguration.RpcApis;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import static net.consensys.pantheon.cli.EthNetworkConfig.mainnet;
|
||||
import static tech.pegasys.pantheon.cli.EthNetworkConfig.mainnet;
|
||||
|
||||
import net.consensys.pantheon.Runner;
|
||||
import net.consensys.pantheon.RunnerBuilder;
|
||||
import net.consensys.pantheon.cli.EthNetworkConfig;
|
||||
import net.consensys.pantheon.cli.PantheonControllerBuilder;
|
||||
import net.consensys.pantheon.controller.PantheonController;
|
||||
import net.consensys.pantheon.ethereum.eth.sync.SynchronizerConfiguration.Builder;
|
||||
import tech.pegasys.pantheon.Runner;
|
||||
import tech.pegasys.pantheon.RunnerBuilder;
|
||||
import tech.pegasys.pantheon.cli.EthNetworkConfig;
|
||||
import tech.pegasys.pantheon.cli.PantheonControllerBuilder;
|
||||
import tech.pegasys.pantheon.controller.PantheonController;
|
||||
import tech.pegasys.pantheon.ethereum.eth.sync.SynchronizerConfiguration.Builder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.node;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.node;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.WaitUtils;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.WaitUtils;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.dsl.pubsub;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.tests.acceptance.jsonrpc;
|
||||
package tech.pegasys.pantheon.tests.acceptance.jsonrpc;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.consensys.pantheon.tests.acceptance.mining;
|
||||
package tech.pegasys.pantheon.tests.acceptance.mining;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static org.web3j.utils.Convert.Unit.ETHER;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package net.consensys.pantheon.tests.acceptance.pubsub;
|
||||
package tech.pegasys.pantheon.tests.acceptance.pubsub;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonNode;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.pubsub.Subscription;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.pubsub.WebSocket;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.account.Account;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.pubsub.Subscription;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.pubsub.WebSocket;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ pragma solidity ^0.4.0;
|
||||
// compile with:
|
||||
// solc EventEmitter.sol --bin --abi --optimize --overwrite -o .
|
||||
// then create web3j wrappers with:
|
||||
// web3j solidity generate ./generated/EventEmitter.bin ./generated/EventEmitter.abi -o ../../../../../ -p net.consensys.pantheon.tests.web3j.generated
|
||||
// web3j solidity generate ./generated/EventEmitter.bin ./generated/EventEmitter.abi -o ../../../../../ -p tech.pegasys.pantheon.tests.web3j.generated
|
||||
contract EventEmitter {
|
||||
address owner;
|
||||
event stored(address _to, uint _amount);
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.consensys.pantheon.tests.web3j;
|
||||
package tech.pegasys.pantheon.tests.web3j;
|
||||
|
||||
import static net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNodeConfig.pantheonMinerNode;
|
||||
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import net.consensys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import net.consensys.pantheon.tests.web3j.generated.EventEmitter;
|
||||
import net.consensys.pantheon.tests.web3j.generated.EventEmitter.StoredEventResponse;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
|
||||
import tech.pegasys.pantheon.tests.acceptance.dsl.node.PantheonNode;
|
||||
import tech.pegasys.pantheon.tests.web3j.generated.EventEmitter;
|
||||
import tech.pegasys.pantheon.tests.web3j.generated.EventEmitter.StoredEventResponse;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.tests.web3j.generated;
|
||||
package tech.pegasys.pantheon.tests.web3j.generated;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
|
||||
12
build.gradle
12
build.gradle
@@ -92,7 +92,7 @@ allprojects {
|
||||
}
|
||||
removeUnusedImports()
|
||||
googleJavaFormat()
|
||||
importOrder 'net.consensys', 'java', ''
|
||||
importOrder 'tech.pegasys', 'java', ''
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
@@ -131,7 +131,7 @@ allprojects {
|
||||
* The properties passed are:
|
||||
* - 'test.ethereum.include': allows to run a single Ethereum reference tests. For instance,
|
||||
* running a single general state test can be done with:
|
||||
* ./gradlew :ethereum:net.consensys.pantheon.ethereum.vm:test -Dtest.single=GeneralStateTest -Dtest.ethereum.include=callcodecallcallcode_101-Frontier
|
||||
* ./gradlew :ethereum:tech.pegasys.pantheon.ethereum.vm:test -Dtest.single=GeneralStateTest -Dtest.ethereum.include=callcodecallcallcode_101-Frontier
|
||||
* The meaning being that will be run only the tests for which the value passed as "include"
|
||||
* (which can be a java pattern) matches parts of the test name. Knowing that tests names for
|
||||
* reference tests are of the form:
|
||||
@@ -142,7 +142,7 @@ allprojects {
|
||||
* multiple variant of that test are run. The variant is a simple number.
|
||||
* - 'test.ethereum.state.eip': for general state tests, allows to only run tests for the
|
||||
* milestone specified by this value. So for instance,
|
||||
* ./gradlew :ethereum:net.consensys.pantheon.ethereum.vm:test -Dtest.single=GeneralStateTest -Dtest.ethereum.state.eip=Frontier
|
||||
* ./gradlew :ethereum:tech.pegasys.pantheon.ethereum.vm:test -Dtest.single=GeneralStateTest -Dtest.ethereum.state.eip=Frontier
|
||||
* only run general state tests for Frontier. Note that this behavior could be achieved as well
|
||||
* with the 'include' option above since it is a pattern, but this is a slightly more convenient
|
||||
* option.
|
||||
@@ -266,7 +266,7 @@ subprojects {
|
||||
publications {
|
||||
MavenDeployment(MavenPublication) {
|
||||
from components.java
|
||||
groupId 'net.consensys.pantheon'
|
||||
groupId 'tech.pegasys.pantheon'
|
||||
artifactId project.jar.baseName
|
||||
version project.version
|
||||
}
|
||||
@@ -299,7 +299,7 @@ subprojects {
|
||||
jar { enabled = false }
|
||||
|
||||
apply plugin: 'application'
|
||||
mainClassName = "net.consensys.pantheon.Pantheon"
|
||||
mainClassName = "tech.pegasys.pantheon.Pantheon"
|
||||
applicationDefaultJvmArgs = [
|
||||
"-Dvertx.disableFileCPResolving=true",
|
||||
"-Dpantheon.home=PANTHEON_HOME",
|
||||
@@ -330,7 +330,7 @@ dependencies {
|
||||
|
||||
task createEVMToolApp(type: CreateStartScripts) {
|
||||
outputDir = startScripts.outputDir
|
||||
mainClassName = 'net.consensys.pantheon.EVMTool'
|
||||
mainClassName = 'tech.pegasys.pantheon.EVMTool'
|
||||
applicationName = 'evm'
|
||||
classpath = startScripts.classpath
|
||||
}
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.headervalidationrules.CliqueDifficultyValidationRule;
|
||||
import net.consensys.pantheon.consensus.clique.headervalidationrules.CliqueExtraDataValidationRule;
|
||||
import net.consensys.pantheon.consensus.clique.headervalidationrules.CoinbaseHeaderValidationRule;
|
||||
import net.consensys.pantheon.consensus.clique.headervalidationrules.SignerRateLimitValidationRule;
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.headervalidationrules.VoteValidationRule;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.mainnet.BlockHeaderValidator;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.AncestryValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.ConstantFieldValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.GasLimitRangeAndDeltaValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.GasUsageValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.TimestampValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.headervalidationrules.CliqueDifficultyValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.headervalidationrules.CliqueExtraDataValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.headervalidationrules.CoinbaseHeaderValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.headervalidationrules.SignerRateLimitValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.headervalidationrules.VoteValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.BlockHeaderValidator;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.AncestryValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.ConstantFieldValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.GasLimitRangeAndDeltaValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.GasUsageValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.TimestampValidationRule;
|
||||
|
||||
public class BlockHeaderValidationRulesetFactory {
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.ethereum.rlp.BytesValueRLPOutput;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.BytesValueRLPOutput;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
|
||||
/**
|
||||
* Holds the data which lives "in parallel" with the importation of blocks etc. when using the
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.DifficultyCalculator;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.DifficultyCalculator;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import net.consensys.pantheon.util.bytes.BytesValues;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValues;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.blockcreation.CliqueProposerSelector;
|
||||
import net.consensys.pantheon.consensus.common.ValidatorProvider;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.chain.Blockchain;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.consensus.clique.blockcreation.CliqueProposerSelector;
|
||||
import tech.pegasys.pantheon.consensus.common.ValidatorProvider;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.chain.Blockchain;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MutableProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MutableProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static net.consensys.pantheon.consensus.clique.BlockHeaderValidationRulesetFactory.cliqueBlockHeaderValidator;
|
||||
import static tech.pegasys.pantheon.consensus.clique.BlockHeaderValidationRulesetFactory.cliqueBlockHeaderValidator;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.Wei;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockBodyValidator;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockImporter;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetProtocolSpecs;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSpecBuilder;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Wei;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockBodyValidator;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockImporter;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetProtocolSpecs;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSpecBuilder;
|
||||
|
||||
/** Factory for producing Clique protocol specs for given configurations and known fork points */
|
||||
public class CliqueProtocolSpecs {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.apache.logging.log4j.LogManager.getLogger;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.ethereum.chain.Blockchain;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.ethereum.chain.Blockchain;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.ethereum.chain.Blockchain;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.ethereum.chain.Blockchain;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Deque;
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueBlockHashing;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.crypto.SECP256K1;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractBlockCreator;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHashFunction;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderBuilder;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.core.PendingTransactions;
|
||||
import net.consensys.pantheon.ethereum.core.SealableBlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.ethereum.core.Wei;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ScheduleBasedBlockHashFunction;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueBlockHashing;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractBlockCreator;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHashFunction;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderBuilder;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.PendingTransactions;
|
||||
import tech.pegasys.pantheon.ethereum.core.SealableBlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.ethereum.core.Wei;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ScheduleBasedBlockHashFunction;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueHelpers;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractBlockScheduler;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractMiningCoordinator.MinedBlockObserver;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.BlockMiner;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.util.Subscribers;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractBlockScheduler;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractMiningCoordinator.MinedBlockObserver;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.BlockMiner;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.util.Subscribers;
|
||||
|
||||
public class CliqueBlockMiner extends BlockMiner<CliqueContext, CliqueBlockCreator> {
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import net.consensys.pantheon.consensus.common.ValidatorProvider;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.DefaultBlockScheduler;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.util.time.Clock;
|
||||
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import tech.pegasys.pantheon.consensus.common.ValidatorProvider;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.DefaultBlockScheduler;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.util.time.Clock;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractBlockScheduler;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractMinerExecutor;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractMiningCoordinator.MinedBlockObserver;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.PendingTransactions;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.util.Subscribers;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import net.consensys.pantheon.util.bytes.BytesValues;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractBlockScheduler;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractMinerExecutor;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractMiningCoordinator.MinedBlockObserver;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.PendingTransactions;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.util.Subscribers;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValues;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractMiningCoordinator;
|
||||
import net.consensys.pantheon.ethereum.chain.Blockchain;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractMiningCoordinator;
|
||||
import tech.pegasys.pantheon.ethereum.chain.Blockchain;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueDifficultyCalculator;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueHelpers;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.AttachedBlockHeaderValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueDifficultyCalculator;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.AttachedBlockHeaderValidationRule;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueBlockHashing;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.AttachedBlockHeaderValidationRule;
|
||||
import net.consensys.pantheon.ethereum.rlp.RLPException;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueBlockHashing;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.AttachedBlockHeaderValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.RLPException;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueVoteTallyUpdater;
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.DetachedBlockHeaderValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueVoteTallyUpdater;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.DetachedBlockHeaderValidationRule;
|
||||
|
||||
public class CoinbaseHeaderValidationRule implements DetachedBlockHeaderValidationRule {
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueHelpers;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.AttachedBlockHeaderValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.AttachedBlockHeaderValidationRule;
|
||||
|
||||
public class SignerRateLimitValidationRule
|
||||
implements AttachedBlockHeaderValidationRule<CliqueContext> {
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.jsonrpc.methods.CliqueGetSigners;
|
||||
import net.consensys.pantheon.consensus.clique.jsonrpc.methods.CliqueGetSignersAtHash;
|
||||
import net.consensys.pantheon.consensus.clique.jsonrpc.methods.Discard;
|
||||
import net.consensys.pantheon.consensus.clique.jsonrpc.methods.Propose;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.chain.MutableBlockchain;
|
||||
import net.consensys.pantheon.ethereum.db.WorldStateArchive;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.jsonrpc.methods.CliqueGetSigners;
|
||||
import tech.pegasys.pantheon.consensus.clique.jsonrpc.methods.CliqueGetSignersAtHash;
|
||||
import tech.pegasys.pantheon.consensus.clique.jsonrpc.methods.Discard;
|
||||
import tech.pegasys.pantheon.consensus.clique.jsonrpc.methods.Propose;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.chain.MutableBlockchain;
|
||||
import tech.pegasys.pantheon.ethereum.db.WorldStateArchive;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import static net.consensys.pantheon.consensus.clique.CliqueHelpers.getValidatorsOfBlock;
|
||||
import static tech.pegasys.pantheon.consensus.clique.CliqueHelpers.getValidatorsOfBlock;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.BlockParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.BlockParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import static net.consensys.pantheon.consensus.clique.CliqueHelpers.getValidatorsOfBlock;
|
||||
import static tech.pegasys.pantheon.consensus.clique.CliqueHelpers.getValidatorsOfBlock;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
|
||||
public class Discard implements JsonRpcMethod {
|
||||
private static final String CLIQUE_DISCARD = "clique_discard";
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.methods.JsonRpcMethod;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
|
||||
public class Propose implements JsonRpcMethod {
|
||||
private final VoteProposer proposer;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderBuilder;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.core.LogsBloomFilter;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockHashFunction;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import net.consensys.pantheon.util.uint.UInt256;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderBuilder;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.LogsBloomFilter;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockHashFunction;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.util.uint.UInt256;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Java6Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
|
||||
import io.vertx.core.json.JsonObject;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Java6Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.Wei;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetProtocolSpecs;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MutableProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.Wei;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetProtocolSpecs;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MutableProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.singletonList;
|
||||
@@ -9,18 +9,18 @@ import static org.mockito.Mockito.verifyNoMoreInteractions;
|
||||
import static org.mockito.Mockito.verifyZeroInteractions;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.crypto.SECP256K1;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.chain.MutableBlockchain;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.chain.MutableBlockchain;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
@@ -6,23 +6,23 @@ import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
import net.consensys.pantheon.consensus.clique.headervalidationrules.SignerRateLimitValidationRule;
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
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.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.ethereum.db.DefaultMutableBlockchain;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockHashFunction;
|
||||
import net.consensys.pantheon.services.kvstore.InMemoryKeyValueStorage;
|
||||
import net.consensys.pantheon.services.kvstore.KeyValueStorage;
|
||||
import tech.pegasys.pantheon.consensus.clique.headervalidationrules.SignerRateLimitValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
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.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.ethereum.db.DefaultMutableBlockchain;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockHashFunction;
|
||||
import tech.pegasys.pantheon.services.kvstore.InMemoryKeyValueStorage;
|
||||
import tech.pegasys.pantheon.services.kvstore.KeyValueStorage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.clique;
|
||||
package tech.pegasys.pantheon.consensus.clique;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
@@ -9,19 +9,19 @@ import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.mockito.Mockito.verifyZeroInteractions;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
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.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.db.DefaultMutableBlockchain;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockHashFunction;
|
||||
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.common.EpochManager;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
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.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.db.DefaultMutableBlockchain;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockHashFunction;
|
||||
import tech.pegasys.pantheon.services.kvstore.InMemoryKeyValueStorage;
|
||||
import tech.pegasys.pantheon.services.kvstore.KeyValueStorage;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import static org.assertj.core.api.Assertions.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.VoteTallyCache;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.AbstractBlockScheduler.BlockCreationTimeResult;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.util.time.Clock;
|
||||
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.AbstractBlockScheduler.BlockCreationTimeResult;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.util.time.Clock;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import static org.assertj.core.api.Assertions.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.CliqueProtocolSchedule;
|
||||
import net.consensys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
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.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueExtraData;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueProtocolSchedule;
|
||||
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.blockcreation.MiningParameters;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
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.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package net.consensys.pantheon.consensus.clique.blockcreation;
|
||||
package tech.pegasys.pantheon.consensus.clique.blockcreation;
|
||||
|
||||
import static org.assertj.core.api.Assertions.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.VoteTallyCache;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
import static org.assertj.core.api.Assertions.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.CliqueBlockHashing;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueContext;
|
||||
import net.consensys.pantheon.consensus.clique.CliqueExtraData;
|
||||
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.crypto.SECP256K1;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import net.consensys.pantheon.util.uint.UInt256;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueBlockHashing;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueContext;
|
||||
import tech.pegasys.pantheon.consensus.clique.CliqueExtraData;
|
||||
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.crypto.SECP256K1;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.util.uint.UInt256;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
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.TestHelpers;
|
||||
import net.consensys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.AddressHelpers;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
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.TestHelpers;
|
||||
import tech.pegasys.pantheon.consensus.clique.VoteTallyCache;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.KeyPair;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.AddressHelpers;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.clique.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.clique.headervalidationrules;
|
||||
|
||||
public class SignerRateLimitValidationRuleTest {
|
||||
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static net.consensys.pantheon.ethereum.core.Address.fromHexString;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.mockito.Mockito.when;
|
||||
import static tech.pegasys.pantheon.ethereum.core.Address.fromHexString;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.exception.InvalidJsonRpcParameters;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.TransactionWithMetadata;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.exception.InvalidJsonRpcParameters;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.TransactionWithMetadata;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static net.consensys.pantheon.ethereum.core.Address.fromHexString;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.mockito.Mockito.when;
|
||||
import static tech.pegasys.pantheon.ethereum.core.Address.fromHexString;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.queries.TransactionWithMetadata;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockWithMetadata;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.BlockchainQueries;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.queries.TransactionWithMetadata;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcError;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcErrorResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.exception.InvalidJsonRpcParameters;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponseType;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.exception.InvalidJsonRpcParameters;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponseType;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
package net.consensys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
package tech.pegasys.pantheon.consensus.clique.jsonrpc.methods;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponseType;
|
||||
import net.consensys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.JsonRpcRequest;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.parameters.JsonRpcParameter;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponse;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcResponseType;
|
||||
import tech.pegasys.pantheon.ethereum.jsonrpc.internal.response.JsonRpcSuccessResponse;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
public class EpochManager {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.consensys.pantheon.consensus.common.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.common.headervalidationrules;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.mainnet.DetachedBlockHeaderValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.DetachedBlockHeaderValidationRule;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
import static net.consensys.pantheon.consensus.common.VoteType.ADD;
|
||||
import static net.consensys.pantheon.consensus.common.VoteType.DROP;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static tech.pegasys.pantheon.consensus.common.VoteType.ADD;
|
||||
import static tech.pegasys.pantheon.consensus.common.VoteType.DROP;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
|
||||
import java.util.AbstractMap;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.consensus.common;
|
||||
package tech.pegasys.pantheon.consensus.common;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.singletonList;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.consensys.pantheon.consensus.common.headervalidationrules;
|
||||
package tech.pegasys.pantheon.consensus.common.headervalidationrules;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeaderTestFixture;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.ethereum.rlp.RLPInput;
|
||||
import net.consensys.pantheon.ethereum.rlp.RLPOutput;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.RLPInput;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.RLPOutput;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.core.Util;
|
||||
import net.consensys.pantheon.ethereum.rlp.BytesValueRLPOutput;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.Util;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.BytesValueRLPOutput;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.headervalidationrules.VoteValidationRule;
|
||||
import net.consensys.pantheon.consensus.ibft.headervalidationrules.IbftExtraDataValidationRule;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import net.consensys.pantheon.ethereum.mainnet.BlockHeaderValidator;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.AncestryValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.ConstantFieldValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.GasLimitRangeAndDeltaValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.GasUsageValidationRule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.headervalidationrules.TimestampValidationRule;
|
||||
import net.consensys.pantheon.util.uint.UInt256;
|
||||
import tech.pegasys.pantheon.consensus.common.headervalidationrules.VoteValidationRule;
|
||||
import tech.pegasys.pantheon.consensus.ibft.headervalidationrules.IbftExtraDataValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.BlockHeaderValidator;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.AncestryValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.ConstantFieldValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.GasLimitRangeAndDeltaValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.GasUsageValidationRule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.headervalidationrules.TimestampValidationRule;
|
||||
import tech.pegasys.pantheon.util.uint.UInt256;
|
||||
|
||||
public class IbftBlockHeaderValidationRulesetFactory {
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.ethereum.ProtocolContext;
|
||||
import net.consensys.pantheon.ethereum.core.Block;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.ethereum.core.BlockImporter;
|
||||
import net.consensys.pantheon.ethereum.core.TransactionReceipt;
|
||||
import net.consensys.pantheon.ethereum.mainnet.HeaderValidationMode;
|
||||
import tech.pegasys.pantheon.ethereum.ProtocolContext;
|
||||
import tech.pegasys.pantheon.ethereum.core.Block;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockImporter;
|
||||
import tech.pegasys.pantheon.ethereum.core.TransactionReceipt;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.HeaderValidationMode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.VoteProposer;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteProposer;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
|
||||
/** Holds the IBFT specific mutable state. */
|
||||
public class IbftContext {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.consensus.ibft.IbftEvents.Type;
|
||||
import tech.pegasys.pantheon.consensus.ibft.IbftEvents.Type;
|
||||
|
||||
/** Category of events that will effect and are interpretable by the Ibft processing mechanism */
|
||||
public interface IbftEvent {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.ethereum.p2p.api.Message;
|
||||
import tech.pegasys.pantheon.ethereum.p2p.api.Message;
|
||||
|
||||
/** Static helper functions for producing and working with IbftEvent objects */
|
||||
public class IbftEvents {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import net.consensys.pantheon.crypto.SECP256K1.Signature;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.rlp.BytesValueRLPInput;
|
||||
import net.consensys.pantheon.ethereum.rlp.BytesValueRLPOutput;
|
||||
import net.consensys.pantheon.ethereum.rlp.RLPInput;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.crypto.SECP256K1.Signature;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.BytesValueRLPInput;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.BytesValueRLPOutput;
|
||||
import tech.pegasys.pantheon.ethereum.rlp.RLPInput;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.ethereum.core.Hash;
|
||||
import tech.pegasys.pantheon.ethereum.core.Hash;
|
||||
|
||||
public class IbftHelpers {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.ethereum.mainnet.MutableProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MutableProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import static net.consensys.pantheon.consensus.ibft.IbftBlockHeaderValidationRulesetFactory.ibftBlockHeaderValidator;
|
||||
import static tech.pegasys.pantheon.consensus.ibft.IbftBlockHeaderValidationRulesetFactory.ibftBlockHeaderValidator;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.ethereum.core.Wei;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockBodyValidator;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetBlockImporter;
|
||||
import net.consensys.pantheon.ethereum.mainnet.MainnetProtocolSpecs;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import net.consensys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.ethereum.core.Wei;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockBodyValidator;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetBlockImporter;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.MainnetProtocolSpecs;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSchedule;
|
||||
import tech.pegasys.pantheon.ethereum.mainnet.ProtocolSpec;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
/** Stateful evaluator for ibft events */
|
||||
public class IbftStateMachine {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.consensus.ibft.ibftevent.RoundExpiry;
|
||||
import tech.pegasys.pantheon.consensus.ibft.ibftevent.RoundExpiry;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.consensys.pantheon.consensus.ibft;
|
||||
package tech.pegasys.pantheon.consensus.ibft;
|
||||
|
||||
import net.consensys.pantheon.consensus.common.EpochManager;
|
||||
import net.consensys.pantheon.consensus.common.VoteTally;
|
||||
import net.consensys.pantheon.consensus.common.VoteType;
|
||||
import net.consensys.pantheon.ethereum.chain.Blockchain;
|
||||
import net.consensys.pantheon.ethereum.core.Address;
|
||||
import net.consensys.pantheon.ethereum.core.BlockHeader;
|
||||
import net.consensys.pantheon.util.bytes.BytesValue;
|
||||
import tech.pegasys.pantheon.consensus.common.EpochManager;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteTally;
|
||||
import tech.pegasys.pantheon.consensus.common.VoteType;
|
||||
import tech.pegasys.pantheon.ethereum.chain.Blockchain;
|
||||
import tech.pegasys.pantheon.ethereum.core.Address;
|
||||
import tech.pegasys.pantheon.ethereum.core.BlockHeader;
|
||||
import tech.pegasys.pantheon.util.bytes.BytesValue;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user