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

3314 Commits

Author SHA1 Message Date
Andreas Schildbach
242985fb89 Release 0.15.3 v0.15.3 2019-07-16 12:25:56 +02:00
Sean Gilligan
921a5d1aa8 Fix NPE in o.b.c.Utils runtime and os detection
If getProperty returns null calling toLowerCase results in NPE. Instead
we’ll use a default value and check for .equals(“”) in the following if.
2019-07-16 12:17:56 +02:00
Sean Gilligan
5bb5de395e AbstractBlockChain: Fix typos in JavaDoc. 2019-07-16 12:17:34 +02:00
Cameron MacKeen
11e8ec8781 Transaction: Fix typos in JavaDoc. 2019-07-16 12:16:48 +02:00
Andreas Schildbach
729b84ed45 ECKey: Fix JavaDoc encoding error on Windows. 2019-07-16 12:16:28 +02:00
Matthew Leon
90b4b54b43 ScriptPattern: Correct and clarify the JavaDoc on isSentToMultisig() 2019-07-16 12:14:39 +02:00
Matthew Leon
cb6d36f03b ScriptChunk: Add missing @Nullable annotations to constructors. 2019-07-16 12:11:07 +02:00
Andreas Schildbach
3e0a65f36f Script: Remove mention of 'from addresses' in comment. 2019-07-16 12:09:39 +02:00
Matthew Leon
aaf2155fa7 ECKey: Missing @Nullable on priv field. 2019-07-16 12:08:50 +02:00
Matthew Leon
d13b0cfc74 SegwitAddress: Don't encode witness version to OP_N when constructing.
This bug was never exposed outside the SegwitAddress class (and thus can't be tested) because the encode method is only ever called by fromHash, where the script version is always set to 0.

Nevertheless, this bug could result in faults in future code, as other witness program versions begin to be used: The other construction methods, such as fromBech32(), leave the version byte as a simple representation of the version number. This means that, were the SegwitAddress constructor ever called with a non-0 version number, getWitnessVersion() would return an incorrect result, and ScriptBuilder.createOutputScript() would fail, re-running encodeToOpN() on the now greater-than-16 version byte.
2019-07-16 12:06:12 +02:00
Andreas Schildbach
d36603c2ba Use Bouncy Castle's Scrypt implementation rather than the standalone library.
Amazingly, on a Pixel 2 this implementation is a bit quicker than Will Glozer/Colin Percival's native code.
2019-07-16 12:04:54 +02:00
Andreas Schildbach
90ae0d8785 Prepare 0.15.3-SNAPSHOT 2019-07-06 12:12:35 +02:00
Andreas Schildbach
ea3a70e85e Release 0.15.2 v0.15.2 2019-05-04 09:07:30 +02:00
Andreas Schildbach
0b2670555e ChildKeyDerivationTest: Fix second testcase of testChildKeyDerivation() is never tested. 2019-05-04 01:39:24 +02:00
Andreas Schildbach
7197534485 HDKeyDerivation: Make precondition message more clear in deriveChildKeyBytesFromPublic(). 2019-05-04 01:39:14 +02:00
Oscar Guindzberg
4283d58c23 Script: Add links to new methods replacing deprecated methods. 2019-05-04 01:38:33 +02:00
Oscar Guindzberg
840e422f2b TransactionConfidence: Fix typo in JavaDoc. 2019-05-04 01:38:13 +02:00
Andreas Schildbach
c5aa1a0c69 Fix unbalanced <p> tags in JavaDocs. 2019-05-04 01:37:10 +02:00
Matthew Leon
11bbcbea2e LegacyAddress: Update outdated JavaDoc reference.
It suggests using a deprecated method.
2019-05-04 01:36:04 +02:00
Andreas Schildbach
8b1c332fb6 wallet-tool-help.txt: Move description of fee options to general options section. 2019-05-04 01:35:26 +02:00
Andreas Schildbach
37f9571dc5 .travis.yml: Specify exact Gradle version to use.
Start out with version 4.10.3 because 4.10 is our requirement for building all modules, including wallettemplate.
2019-05-04 01:34:11 +02:00
Premek
d91726483e LegacyAddressTest: Fix copy-paste error. 2019-05-04 01:33:08 +02:00
Andreas Schildbach
d2459441a6 Peer: Ignore incoming SendHeaders messages, because we don't announce new blocks. 2019-05-04 01:31:11 +02:00
Oscar Guindzberg
e68cc4488d WalletAppKit: Remove unnecessary call to KeyChainGroup.Builder.build(). 2019-05-04 01:30:30 +02:00
Oscar Guindzberg
0f5ac332ec Wallet: Fix script type in deprecated findKeyFromPubHash(). 2019-04-12 16:06:02 +02:00
Andreas Schildbach
55612cd1dc KeyCrypterScryptTest: Fix spurious test failure in testKeyCrypterWrongPassword(). 2019-04-12 16:06:02 +02:00
Andreas Schildbach
b567260189 ECKey: Decrypted keys must always be 32 bytes long, otherwise likely the encryption key was wrong. 2019-04-12 16:06:02 +02:00
Matthew Leon
c509cdbd95 ECKey: Add missing @Nullable on toString(). 2019-04-12 16:06:02 +02:00
Matthew Leon
7dcbd3a54c Transaction: Add missing @Nullable on getMemo(). 2019-04-12 16:06:02 +02:00
Matthew Leon
f47badc76f KeyChainGroup: Fix NullPointerExceptions in decrypt() for the case of only a basic keychain. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
57d0eef454 WalletTest: Be more specific about the expected exception in basicSpendingCommon() when supplying a wrong password. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
f1e67faa0b WalletTest: Be more specific about the expected exception in encryptionDecryptionBadPassword(). 2019-04-12 16:06:02 +02:00
Andreas Schildbach
43a7df3838 DeterministicKey: Decrypted deterministic keys must always be 32 bytes long, otherwise likely the encryption key was wrong. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
ddcaf228e9 KeyCrypterException: Introduce dedicated InvalidCipherText exception for when a private key or seed is decrypted, the decrypted message is damaged. 2019-04-12 16:06:02 +02:00
Andreas Schildbach
38323538b4 KeyCrypterException: Introduce dedicated PublicPrivateMismatch exception for when a private key or seed is decrypted, it doesn't match its public key. 2019-04-12 16:05:39 +02:00
Matthew Leon
c572bb52d7 KeyChainGroup: Be smarter about encryption order.
This partly reverts commit 4ed5b0e3b06c18040d83be30df32e7be5b778b51.
2019-04-12 16:05:39 +02:00
Andreas Schildbach
80dd4e39fa KeyChainGroupTest: Extract AES_KEY used in tests to constant because deriving the key is costly. 2019-04-12 16:05:39 +02:00
Matthew Leon
26b7d8728f KeyChainGroup: Fix NullPointerExceptions in encrypt() for the case of only a basic keychain. 2019-04-12 16:05:39 +02:00
Matthew Leon
12f1670eea MonetaryFormat: Fix equals() and hashCode(). 2019-04-12 16:05:39 +02:00
Matthew Leon
be40b7a3e5 NetworkParameters: Make double-checked locking on defaultSerializer safe with volatile keyword. 2019-04-12 16:05:39 +02:00
Matthew Leon
9d1cff1de1 KeyCrypterScrypt: Migrate AESFastEngine to AESEngine.
AESFastEngine raises a deprecation warning. See https://nvd.nist.gov/vuln/detail/CVE-2016-1000339
2019-04-12 16:05:26 +02:00
Oscar Guindzberg
76f6f0c21f PeerGroup: Don't stop peer discovery if one peer discoverer throws an exception. 2019-04-12 15:27:30 +02:00
Oscar Guindzberg
a9b40c358f PeerGroup.addAddress(): Don't increase max connections if address already exists. 2019-04-12 15:27:08 +02:00
Andreas Schildbach
aba000750c BitcoinURI: Allow uppercase schema. 2019-04-12 15:26:21 +02:00
Andreas Schildbach
7747532bd0 Use plain Gradle console for running any of the tools. 2019-04-12 15:26:10 +02:00
Andreas Schildbach
c7dfe59317 KeyChainGroup: Fix NullPointerException in findRedeemDataFromScriptHash() if no deterministic keychain is in the group. 2019-04-12 15:25:58 +02:00
Andreas Schildbach
c3b6e0d7b9 Wallet: Fix handling of wallet without deterministic chains in checkForFilterExhaustion(). 2019-04-12 15:25:41 +02:00
Andreas Schildbach
f81eb9bc24 Wallet: Fix NullPointerException in isRequiringUpdateAllBloomFilter() when calculating the filter for a basic wallet. 2019-04-12 15:25:23 +02:00
Andreas Schildbach
7ca3dca222 Transaction: In toString(), if an output is unconnected still print the outpoint. 2019-04-12 15:25:02 +02:00
Andreas Schildbach
9d8bb0b64a Transaction: In toString(), if a script type is unknown just say so. 2019-04-12 15:24:50 +02:00