Rebrand for GRS

This commit is contained in:
HashEngineering 2021-01-23 10:15:36 -08:00
parent 965a4d1249
commit 93276e76a7
No known key found for this signature in database
GPG key ID: A615EB0C5CEBDEDE
3 changed files with 5 additions and 5 deletions

View file

@ -123,7 +123,7 @@ public class TransactionTask implements Runnable {
builder.append("Wallet ").append(wallet.getName()).append(" received to address").append(toAddresses.size() == 1 ? " " : "es "); builder.append("Wallet ").append(wallet.getName()).append(" received to address").append(toAddresses.size() == 1 ? " " : "es ");
StringJoiner toJoiner = new StringJoiner(", ", "[", "]"); StringJoiner toJoiner = new StringJoiner(", ", "[", "]");
for(Address address : toAddresses.keySet()) { for(Address address : toAddresses.keySet()) {
toJoiner.add(address.toString() + " [" + Utils.formatHDPath(wallet.getAddressPath(address)) + "]" + " (" + toAddresses.get(address) + " sats)"); toJoiner.add(address.toString() + " [" + Utils.formatHDPath(wallet.getAddressPath(address)) + "]" + " (" + toAddresses.get(address) + " gros)");
} }
builder.append(toJoiner.toString()).append(" in txid ").append(transaction.getTxId()); builder.append(toJoiner.toString()).append(" in txid ").append(transaction.getTxId());
log.info(builder.toString()); log.info(builder.toString());

View file

@ -52,7 +52,7 @@ public class BitcoinJSONRPCClient {
conn.setRequestProperty("Authorization", "Basic " + authStr); conn.setRequestProperty("Authorization", "Basic " + authStr);
byte[] r = prepareRequest(method, o); byte[] r = prepareRequest(method, o);
log.debug("Bitcoin JSON-RPC request: " + new String(r, QUERY_CHARSET)); log.debug("Groestlcoin JSON-RPC request: " + new String(r, QUERY_CHARSET));
conn.getOutputStream().write(r); conn.getOutputStream().write(r);
conn.getOutputStream().close(); conn.getOutputStream().close();
int responseCode = conn.getResponseCode(); int responseCode = conn.getResponseCode();
@ -101,7 +101,7 @@ public class BitcoinJSONRPCClient {
public Object loadResponse(InputStream in, Object expectedID, boolean close) throws IOException, BitcoinRPCException { public Object loadResponse(InputStream in, Object expectedID, boolean close) throws IOException, BitcoinRPCException {
try { try {
String r = new String(loadStream(in, close), QUERY_CHARSET); String r = new String(loadStream(in, close), QUERY_CHARSET);
log.debug("Bitcoin JSON-RPC response: " + r); log.debug("Groestlcoin JSON-RPC response: " + r);
try { try {
JSONParser jsonParser = new JSONParser(); JSONParser jsonParser = new JSONParser();
Map response = (Map) jsonParser.parse(r); Map response = (Map) jsonParser.parse(r);

View file

@ -359,9 +359,9 @@ public class DeterministicSeed implements EncryptableItem {
return Bip39MnemonicCode.toSeed(mnemonicCode, passphrase); return Bip39MnemonicCode.toSeed(mnemonicCode, passphrase);
} }
}, },
ELECTRUM("Mnemonic Words (Electrum Seed Version System)") { ELECTRUM("Mnemonic Words (Electrum-GRS Seed Version System)") {
public byte[] getEntropyBytes(List<String> mnemonicCode) throws MnemonicException { public byte[] getEntropyBytes(List<String> mnemonicCode) throws MnemonicException {
throw new MnemonicException("Electrum seeds do not provide entropy bytes"); throw new MnemonicException("Electrum-GRS seeds do not provide entropy bytes");
} }
public void check(List<String> mnemonicCode) throws MnemonicException { public void check(List<String> mnemonicCode) throws MnemonicException {