mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-09 15:37:54 -05:00
Fix typos (#813)
Signed-off-by: Pierre Grimaud <grimaud.pierre@gmail.com> Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user