Signed-off-by: Pierre Grimaud <grimaud.pierre@gmail.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/827/head
Pierre Grimaud 5 years ago committed by GitHub
parent 83fb2cfc76
commit 3cc4dc3cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/node/ProcessBesuNodeRunner.java
  2. 2
      consensus/ibft/src/integration-test/java/org/hyperledger/besu/consensus/ibft/tests/LocalNodeNotProposerTest.java
  3. 2
      ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/response/JsonRpcError.java
  4. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/precompiles/BigIntegerModularExponentiationPrecompiledContract.java
  5. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/vm/MessageFrame.java
  6. 2
      ethereum/core/src/test/java/org/hyperledger/besu/ethereum/vm/TestBlockchain.java
  7. 2
      ethereum/core/src/test/java/org/hyperledger/besu/ethereum/vm/VMReferenceTest.java
  8. 2
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/EthPeerTest.java
  9. 4
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/handshake/Handshaker.java
  10. 4
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/handshake/ecies/ECIESEncryptionEngine.java
  11. 2
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/rlpx/wire/CapabilityMultiplexer.java
  12. 2
      services/pipeline/src/main/java/org/hyperledger/besu/services/pipeline/WritePipe.java

@ -363,7 +363,7 @@ public class ProcessBesuNodeRunner implements BesuNodeRunner {
if (besuProcesses.containsKey(node.getName())) {
killBesuProcess(node.getName());
} else {
LOG.error("There was a request to stop an uknown node: {}", node.getName());
LOG.error("There was a request to stop an unknown node: {}", node.getName());
}
}

@ -130,7 +130,7 @@ public class LocalNodeNotProposerTest {
assertThat(context.getCurrentChainHeight()).isEqualTo(0);
peers.getProposer().injectProposal(roundId, blockToPropose);
// TODO(tmm): Unfortunatley, there are times that the Commit will go out BEFORE the prepare
// TODO(tmm): Unfortunately, there are times that the Commit will go out BEFORE the prepare
// This is one of them :( Maybe fix the testing to be ignorant of ordering?
peers.verifyMessagesReceived(expectedTxCommit, expectedTxPrepare);
assertThat(context.getCurrentChainHeight()).isEqualTo(1);

@ -65,7 +65,7 @@ public enum JsonRpcError {
// Account errors
NO_ACCOUNT_FOUND(-32000, "Account not found"),
// Worldstate erros
// Worldstate errors
WORLD_STATE_UNAVAILABLE(-32000, "World state unavailable"),
// Debug failures

@ -56,7 +56,7 @@ public class BigIntegerModularExponentiationPrecompiledContract
@Override
public Gas gasRequirement(final Bytes input) {
// Typically gas calculations are delegated to a GasCalculator instance,
// but the complexity and coupling wih other parts of the precompile seem
// but the complexity and coupling with other parts of the precompile seem
// like reasonable reasons to do the math here instead.
final BigInteger baseLength = baseLength(input);
final BigInteger exponentLength = exponentLength(input);

@ -551,7 +551,7 @@ public class MessageFrame {
}
/**
* Expands memory to accomodate the specified memory access.
* Expands memory to accommodate the specified memory access.
*
* @param offset The offset in memory
* @param length The length of the memory access

@ -44,7 +44,7 @@ import org.apache.tuweni.bytes.Bytes;
* lookup blocks by number since the block being processed may not be on the canonical chain but
* that must not affect the execution of its transactions.
*
* <p>The Ethereum reference tests for VM exection (VMTests) and transaction processing
* <p>The Ethereum reference tests for VM execution (VMTests) and transaction processing
* (GeneralStateTests) require a block's hash to be to be the hash of the string of it's block
* number.
*/

@ -173,7 +173,7 @@ public class VMReferenceTest extends AbstractRetryingTest {
.isTrue();
} else {
// This is normally performed when the message processor executing the VM
// executes to completion successfuly.
// executes to completion successfully.
frame.getWorldState().commit();
assertThat(frame.getState() == MessageFrame.State.EXCEPTIONAL_HALT)

@ -378,7 +378,7 @@ public class EthPeerTest {
assertThat(messageCount.get()).isEqualTo(2);
assertThat(closedCount.get()).isEqualTo(0);
// Dispatch last oustanding message and check that streams are closed
// Dispatch last outstanding message and check that streams are closed
peer.dispatch(targetEthMessage);
assertThat(messageCount.get()).isEqualTo(4);
assertThat(closedCount.get()).isEqualTo(2);

@ -79,7 +79,7 @@ public interface Handshaker {
*
* @param nodeKey An object which represents our identity
* @param theirPubKey The public key of the node we're handshaking with.
* @throws IllegalStateException Indicates that preparation had already occured.
* @throws IllegalStateException Indicates that preparation had already occurred.
*/
void prepareInitiator(NodeKey nodeKey, SECP256K1.PublicKey theirPubKey);
@ -91,7 +91,7 @@ public interface Handshaker {
* already been prepared before, whether with the initiator or the responder role.
*
* @param nodeKey An object which represents our identity
* @throws IllegalStateException Indicates that preparation had already occured.
* @throws IllegalStateException Indicates that preparation had already occurred.
*/
void prepareResponder(NodeKey nodeKey);

@ -128,7 +128,7 @@ public class ECIESEncryptionEngine {
*
* @param in The plaintext.
* @return The ciphertext.
* @throws InvalidCipherTextException Thrown if an error occured during encryption.
* @throws InvalidCipherTextException Thrown if an error occurred during encryption.
*/
public Bytes encrypt(final Bytes in) throws InvalidCipherTextException {
return Bytes.wrap(encrypt(in.toArray(), 0, in.size(), null));
@ -200,7 +200,7 @@ public class ECIESEncryptionEngine {
*
* @param in The ciphertext.
* @return The plaintext.
* @throws InvalidCipherTextException Thrown if an error occured during decryption.
* @throws InvalidCipherTextException Thrown if an error occurred during decryption.
*/
public Bytes decrypt(final Bytes in) throws InvalidCipherTextException {
return Bytes.wrap(decrypt(in.toArray(), 0, in.size(), null));

@ -74,7 +74,7 @@ public class CapabilityMultiplexer {
* message code to the appropriate value.
*
* @param receivedMessage The message received from a peer.
* @return The intepreted message.
* @return The interpreted message.
*/
public ProtocolMessage demultiplex(final MessageData receivedMessage) {
final Entry<Range<Integer>, Capability> agreedCap =

@ -30,7 +30,7 @@ public interface WritePipe<T> {
/**
* Adds a new item to the pipe. This method will block until capacity is available in the pipe.
* The item will be discarded if the pipe is closed befoer capacity becomes available.
* The item will be discarded if the pipe is closed before capacity becomes available.
*
* @param value the value to add to the pipe.
*/

Loading…
Cancel
Save