Context, HDKeyDerivation, KeyChainGroupStructure: fix punctuation regarding 'e.g.' in comments

This commit is contained in:
Sean Gilligan 2023-12-17 16:41:55 -08:00 committed by Andreas Schildbach
parent e03c6a500b
commit 74153c321f
3 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory;
import java.util.Objects;
// TODO: Finish adding Context c'tors to all the different objects so we can start deprecating the versions that take NetworkParameters.
// TODO: Add a working directory notion to Context and make various subsystems that want to use files default to that directory (eg. Orchid, block stores, wallet, etc).
// TODO: Add a working directory notion to Context and make various subsystems that want to use files default to that directory (e.g. Orchid, block stores, wallet, etc).
// TODO: Auto-register the block chain object here, and then use it in the (newly deprecated) TransactionConfidence.getDepthInBlocks() method: the new version should take an AbstractBlockChain specifically.
// Also use the block chain object reference from the context in PeerGroup and remove the other constructors, as it's easy to forget to wire things up.
// TODO: Move Threading.USER_THREAD to here and leave behind just a source code stub. Allow different instantiations of the library to use different user threads.

View file

@ -138,7 +138,7 @@ public final class HDKeyDerivation {
/**
* @throws HDDerivationException if private derivation is attempted for a public-only parent key, or
* if the resulting derived key is invalid (eg. private key == 0).
* if the resulting derived key is invalid (e.g. private key == 0).
*/
public static DeterministicKey deriveChildKey(DeterministicKey parent, ChildNumber childNumber) throws HDDerivationException {
if (!parent.hasPrivKey())

View file

@ -115,7 +115,7 @@ public interface KeyChainGroupStructure {
/**
* Return coin type path component for a network id
* @param network network id string, eg. {@link BitcoinNetwork#ID_MAINNET}
* @param network network id string, e.g. {@link BitcoinNetwork#ID_MAINNET}
*/
static ChildNumber coinType(Network network) {
if (!(network instanceof BitcoinNetwork)) {