Skip to content

Commit

Permalink
more renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
pvyhnal-generalbytes committed May 2, 2019
1 parent 0e7898d commit 266653b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/litecoinj/core/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Context(NetworkParameters params) {
* @param ensureMinRequiredFee Whether to ensure the minimum required fee by default when completing transactions. For details, see {@link SendRequest#ensureMinRequiredFee}.
*/
public Context(NetworkParameters params, int eventHorizon, Coin feePerKb, boolean ensureMinRequiredFee) {
log.info("Creating bitcoinj {} context.", VersionMessage.BITCOINJ_VERSION);
log.info("Creating litecoinj {} context.", VersionMessage.BITCOINJ_VERSION);
this.confidenceTable = new TxConfidenceTable();
this.params = params;
this.eventHorizon = eventHorizon;
Expand Down Expand Up @@ -99,12 +99,12 @@ public static Context get() {
Context tls = slot.get();
if (tls == null) {
if (isStrictMode) {
log.error("Thread is missing a bitcoinj context.");
log.error("Thread is missing a litecoinj context.");
log.error("You should use Context.propagate() or a ContextPropagatingThreadFactory.");
throw new IllegalStateException("missing context");
}
if (lastConstructed == null)
throw new IllegalStateException("You must construct a Context object before using bitcoinj!");
throw new IllegalStateException("You must construct a Context object before using litecoinj!");
slot.set(lastConstructed);
log.error("Performing thread fixup: you are accessing bitcoinj via a thread that has not had any context set on it.");
log.error("This error has been corrected for, but doing this makes your app less robust.");
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/litecoinj/core/VersionMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class VersionMessage extends Message {
/** The version of this library release, as a string. */
public static final String BITCOINJ_VERSION = "0.15.2-SNAPSHOT";
/** The value that is prepended to the subVer field of this application. */
public static final String LIBRARY_SUBVER = "/bitcoinj:" + BITCOINJ_VERSION + "/";
public static final String LIBRARY_SUBVER = "/litecoinj:" + BITCOINJ_VERSION + "/";

/** A service bit that denotes whether the peer has a full copy of the block chain or not. */
public static final int NODE_NETWORK = 1 << 0;
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/litecoinj/utils/Threading.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static class UserThread extends Thread implements Executor {
private LinkedBlockingQueue<Runnable> tasks;

public UserThread() {
super("bitcoinj user thread");
super("litecoinj user thread");
setDaemon(true);
tasks = new LinkedBlockingQueue<>();
start();
Expand Down

0 comments on commit 266653b

Please sign in to comment.