3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

Fix a few minor typos.

This commit is contained in:
Matt Corallo 2013-07-09 19:06:52 +02:00 committed by Mike Hearn
parent 2c44a4fad7
commit 1277df32d8
3 changed files with 5 additions and 5 deletions

View File

@ -157,7 +157,7 @@ public class BloomFilter extends Message {
}
private int ROTL32 (int x, int r) {
return (x << r) | (x >>> (32 - r));
return (x << r) | (x >>> (32 - r));
}
private int hash(int hashNum, byte[] object) {

View File

@ -673,8 +673,8 @@ public class PeerGroup extends AbstractIdleService implements TransactionBroadca
* Be careful regenerating the bloom filter too often, as it decreases anonymity because remote nodes can
* compare transactions against both the new and old filters to significantly decrease the false positive rate.
*
* See the docs for {@link BloomFilter#BloomFilter(int, double, long)} for a brief explanation of anonymity when
* using bloom filters.
* See the docs for {@link BloomFilter#BloomFilter(int, double, long, BloomFilter.BloomUpdate)} for a brief
* explanation of anonymity when using bloom filters.
*/
public void setBloomFilterFalsePositiveRate(double bloomFilterFPRate) {
lock.lock();

View File

@ -2887,7 +2887,7 @@ public class Wallet implements Serializable, BlockChainListener {
if (out.isMine(this) && out.getScriptPubKey().isSentToRawPubKey())
size++;
} catch (ScriptException e) {
throw new RuntimeException(e); // If it is ours, we parsed the script corectly, so this shouldn't happen
throw new RuntimeException(e); // If it is ours, we parsed the script correctly, so this shouldn't happen
}
}
}
@ -2932,7 +2932,7 @@ public class Wallet implements Serializable, BlockChainListener {
filter.insert(outPoint.bitcoinSerialize());
}
} catch (ScriptException e) {
throw new RuntimeException(e); // If it is ours, we parsed the script corectly, so this shouldn't happen
throw new RuntimeException(e); // If it is ours, we parsed the script correctly, so this shouldn't happen
}
}
}