mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 00:09:31 +01:00
Context, HDKeyDerivation, KeyChainGroupStructure: fix punctuation regarding 'e.g.' in comments
This commit is contained in:
parent
e03c6a500b
commit
74153c321f
3 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory;
|
||||||
import java.util.Objects;
|
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: 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.
|
// 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.
|
// 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.
|
// 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.
|
||||||
|
|
|
@ -138,7 +138,7 @@ public final class HDKeyDerivation {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws HDDerivationException if private derivation is attempted for a public-only parent key, or
|
* @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 {
|
public static DeterministicKey deriveChildKey(DeterministicKey parent, ChildNumber childNumber) throws HDDerivationException {
|
||||||
if (!parent.hasPrivKey())
|
if (!parent.hasPrivKey())
|
||||||
|
|
|
@ -115,7 +115,7 @@ public interface KeyChainGroupStructure {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return coin type path component for a network id
|
* 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) {
|
static ChildNumber coinType(Network network) {
|
||||||
if (!(network instanceof BitcoinNetwork)) {
|
if (!(network instanceof BitcoinNetwork)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue