Skip to content

Commit

Permalink
[MINOR] text edits to plugins javadoc (hyperledger#5115)
Browse files Browse the repository at this point in the history
* light edits and fix to BlockBody type reference
* updated plugin api hash

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
  • Loading branch information
macfarla authored Feb 21, 2023
1 parent 17455d6 commit 11a4f73
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion plugin-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Calculated : ${currentHash}
tasks.register('checkAPIChanges', FileStateChecker) {
description = "Checks that the API for the Plugin-API project does not change without deliberate thought"
files = sourceSets.main.allJava.files
knownHash = '0SzhbPysuW7BDEZzHE4szFg9gPlNu5nfdoKP68Xl4T0='
knownHash = 'sh5/mQlcilXjb/z51QbcvJTlqpI2uBe2EMli1WBV2tw='
}
check.dependsOn('checkAPIChanges')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ default Optional<String> getName() {

/**
* Called once when besu has loaded configuration but before external services have been started
* e.g metrics and http
* e.g. metrics and http
*/
default void beforeExternalServices() {}

Expand All @@ -64,7 +64,7 @@ default void beforeExternalServices() {}
void start();

/**
* Called when the plugin is being reloaded. This method will be called trough a dedicated JSON
* Called when the plugin is being reloaded. This method will be called through a dedicated JSON
* RPC endpoint. If not overridden this method does nothing for convenience. The plugin should
* only implement this method if it supports dynamic reloading.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import java.util.List;

/** The minimum set of data for a AddedBlockContext. */
/** The minimum set of data for an AddedBlockContext. */
public interface AddedBlockContext {

/**
Expand All @@ -27,9 +27,9 @@ public interface AddedBlockContext {
BlockHeader getBlockHeader();

/**
* A {@link BlockHeader} object.
* A {@link BlockBody} object.
*
* @return A {@link BlockHeader}
* @return A {@link BlockBody}
*/
BlockBody getBlockBody();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public interface BlockBody {
*
* @return The list of transactions of the block.
*/
public List<? extends Transaction> getTransactions();
List<? extends Transaction> getTransactions();

/**
* Returns the list of ommers of the block.
*
* @return The list of ommers of the block.
*/
public List<? extends BlockHeader> getOmmers();
List<? extends BlockHeader> getOmmers();

/**
* Returns the list of withdrawals of the block.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public interface BlockHeader {

/**
* The Keccak 256-bit hash of the root node of the state trie, after all transactions are executed
* and finalisations applied.
* and finalizations applied.
*
* @return The Keccak 256-bit hash of the root node of the state trie, after all transactions are
* executed and finalisations applied.
* executed and finalizations applied.
*/
Hash getStateRoot();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public interface EnodeURL {
int getListeningPortOrZero();

/**
* Enode To URI .
* Enode To URI.
*
* @return the uri
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public interface PropagatedBlockContext {
BlockHeader getBlockHeader();

/**
* A {@link BlockHeader} object.
* A {@link BlockBody} object.
*
* @return A {@link BlockHeader}
* @return A {@link BlockBody}
*/
BlockBody getBlockBody();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ default Optional<? extends Quantity> getMaxFeePerDataGas() {

/**
* A scalar value equal to the number of Wei to be transferred to the message call’s recipient or,
* in the case of contract creation, as an endowment to the newly created account
* in the case of contract creation, as an endowment to the newly created account.
*
* @return value equal to the number of Wei to be transferred
*/
Expand Down Expand Up @@ -143,7 +143,7 @@ default Optional<? extends Quantity> getMaxFeePerDataGas() {

/**
* The chainId, computed from the 'V' portion of the signature. Used for replay protection. If
* replay protection is not enabled this value will not be present.
* replay protection is not enabled, this value will not be present.
*
* @return The chainId for transaction.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import org.apache.tuweni.bytes.Bytes;

/** A transaction receipt, containing information pertaining a transaction execution. */
/** A transaction receipt, containing information pertaining to a transaction execution. */
public interface TransactionReceipt {
/**
* Returns the total amount of gas consumed in the block after the transaction has been processed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static TransactionType of(final int serializedTypeValue) {
}

/**
* Does transaction type supports access list.
* Does transaction type support access list.
*
* @return the boolean
*/
Expand All @@ -89,7 +89,7 @@ public boolean supportsAccessList() {
}

/**
* Does transaction type supports EIP-1559 fee market.
* Does transaction type support EIP-1559 fee market.
*
* @return the boolean
*/
Expand All @@ -98,7 +98,7 @@ public boolean supports1559FeeMarket() {
}

/**
* Does transaction type requires chain id.
* Does transaction type require chain id.
*
* @return the boolean
*/
Expand All @@ -107,7 +107,7 @@ public boolean requiresChainId() {
}

/**
* Does transaction type supports data blobs.
* Does transaction type support data blobs.
*
* @return the boolean
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface Withdrawal {
Address getAddress();

/**
* Amount of ether to be withdrawn that be credit to the recipient address
* Amount of ether to be withdrawn and credited to the recipient address
*
* @return withdrawn ether amount
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void register(final BesuContext context) {

if (cmdlineOptions.isEmpty()) {
throw new IllegalStateException(
"Expecting a PicoCLIO options to register CLI options with, but none found.");
"Expecting a PicoCLI options to register CLI options with, but none found.");
}

cmdlineOptions.get().addPicoCLIOptions(NAME, options);
Expand Down

0 comments on commit 11a4f73

Please sign in to comment.