Matthew Leon
48cfd8c816
WalletTest: Fix two deprecated method invocations.
2019-04-23 11:54:21 +02:00
Matthew Leon
6378d3829d
LegacyAddress: Update outdated JavaDoc reference.
...
It suggests using a deprecated method.
2019-04-23 09:51:55 +02:00
Jakob Janecek
f2e59611f1
Block: Access transactions via getter rather than directly through the field.
2019-04-22 17:03:31 +02:00
Matthew Leon
a5d38dd1c1
FilteredBlockAndPartialMerkleTreeTests: Use BitcoinSerializer.makeBlock() rather than the deprecated Block() constructor.
2019-04-20 15:10:12 +02:00
Premek
c5582c89e6
LegacyAddressTest: Fix copy-paste error.
2019-04-18 17:22:26 +02:00
Matthew Leon
b6c2b0946f
TransactionOutput: Kill an unnecessary instance variable.
2019-04-18 16:49:03 +02:00
Sean Gilligan
7bfeff65f6
build.gradle: Use plugins block rather than 'apply plugin' statements.
2019-04-18 16:41:12 +02:00
Oscar Guindzberg
26b30994b8
Wallet: Rename addScriptChangeEventListener() to addScriptsChangeEventListener() and removeScriptChangeEventListener() to removeScriptsChangeEventListener(), for the sake of naming consistency.
...
This renames related class fields too.
2019-04-17 18:51:33 +02:00
Matthew Leon
73ddffb38f
Script: Ensure that non-canonical sigs result in script failure.
2019-04-17 16:17:02 +02:00
Oscar Guindzberg
a1a1f71a27
DeterministicKeyChainTest: Fix path constant name.
...
Use BIP44_COIN_1_ACCOUNT_ZERO_PATH instead of BIP44_ACCOUNT_ONE_PATH.
2019-04-16 10:02:23 +02:00
Oscar Guindzberg
98cff1d5b8
WalletAppKit: Remove redundant throws declaration.
2019-04-15 19:49:32 -03:00
Andreas Schildbach
d686d74903
Peer: Ignore incoming SendHeaders messages, because we don't announce new blocks.
2019-04-14 20:34:10 +02:00
Jakob Janecek
a00f751a56
Replace use of Utils.currentTimeMillis() with Utils.currentTimeSeconds() where appropriate.
2019-04-14 19:18:16 +02:00
Oscar Guindzberg
66289d6f39
WalletAppKit: Remove unnecessary call to KeyChainGroup.Builder.build().
2019-04-13 02:18:38 +02:00
Oscar Guindzberg
0af0439b3f
Wallet: Fix script type in deprecated findKeyFromPubHash().
2019-04-11 18:36:14 +02:00
Andreas Schildbach
8a19bc14e6
KeyCrypterScryptTest: Fix spurious test failure in testKeyCrypterWrongPassword().
2019-04-09 12:36:38 +02:00
Sean Gilligan
783dd45c4b
Wallet: Remove (or reduce visibility of) the deprecated constructors.
...
Replace usages in unit tests and examples with usage of the static createDeterministic() constructor.
2019-04-08 11:23:41 +02:00
Andreas Schildbach
fbd63a24a0
ECKeyTest: Simplify testEncryptionIsReversible().
2019-04-06 10:33:20 +02:00
Andreas Schildbach
1985c007b3
ECKey: Decrypted keys must always be 32 bytes long, otherwise likely the encryption key was wrong.
2019-04-06 10:32:05 +02:00
Matthew Leon
59060e91d2
ECKey: Add missing @Nullable on toString().
2019-04-05 12:58:29 +02:00
Matthew Leon
ac37ed4087
Transaction: Add missing @Nullable on getMemo().
2019-04-05 12:51:35 +02:00
Sean Gilligan
98c5e42517
build.gradle: Declare Automatic-Module-Name entry in MANIFEST.MF to make bitcoinj-core compatible to Java9 modules.
2019-04-05 11:45:52 +02:00
Sean Gilligan
170cc80e45
Update Guava to 27.1-android.
2019-04-05 10:31:35 +02:00
Matthew Leon
59a6407e68
KeyChainGroup: Fix NullPointerExceptions in decrypt() for the case of only a basic keychain.
2019-04-02 10:40:04 +02:00
Andreas Schildbach
8718a51c55
DefaultRiskAnalysisTest: Don't subclass Wallet.
2019-04-01 12:31:50 +02:00
Sean Gilligan
6c4ad41bce
BaseTaggableObject: Simplify.
...
* Make the tags member non-nullable and final by initializing it
* Remove comment about being lazily-created (it doesn’t need to be)
* Remove now unnecessary null-handling code
* Eliminate dependency on Guava (Maps.newHashMap())
2019-04-01 12:08:04 +02:00
Matthew Leon
57de578707
PeerGroup.triggerConnectionsJob: Fix NullPointerException if inactives contains only IPv6 addresses.
2019-04-01 11:30:09 +02:00
Andreas Schildbach
9125c1f94a
Wallet: Introduce BadWalletEncryptionKeyException which is thrown if the private keys and seed of this wallet cannot be decrypted due to the supplied encryption key or password being wrong.
2019-03-31 15:53:15 +02:00
Andreas Schildbach
06d9b64890
WalletTest: Be more specific about the expected exception in basicSpendingCommon() when supplying a wrong password.
2019-03-31 13:43:06 +02:00
Andreas Schildbach
cea73c7c5d
WalletTest: Be more specific about the expected exception in encryptionDecryptionBadPassword().
2019-03-31 13:26:51 +02:00
Andreas Schildbach
c5348d2c21
DeterministicKey: Decrypted deterministic keys must always be 32 bytes long, otherwise likely the encryption key was wrong.
2019-03-31 13:22:17 +02:00
Andreas Schildbach
570a12ba1b
KeyCrypterException: Introduce dedicated InvalidCipherText exception for when a private key or seed is decrypted, the decrypted message is damaged.
2019-03-31 13:14:49 +02:00
Andreas Schildbach
e3c98daa64
KeyCrypterException: Introduce dedicated PublicPrivateMismatch exception for when a private key or seed is decrypted, it doesn't match its public key.
2019-03-31 13:13:28 +02:00
Sean Gilligan
686a10ccd2
Use JDK7+ Objects.hash() and equals() rather than the Guava variants.
...
The Guava variants are “deprecated” for JDK7+.
2019-03-31 10:49:21 +02:00
Andreas Schildbach
6b309e486f
DeterministicSeed: New method getMnemonicString() to do the string concatenation.
2019-03-31 03:37:54 +02:00
Sean Gilligan
56443ee754
Replace Guava primitive compare() with JDK7+ compare().
...
In Java 7, Integer.compare() and Long.compare() were added. Use those
methods rather than the Guava equivalents which are “deprecated” for
JDK7+.
2019-03-31 01:22:17 +01:00
Andreas Schildbach
0df0591c0b
Speed up tests with Scrypt and reduce memory consumption by reducing the number of iterations.
2019-03-31 00:34:21 +01:00
Matthew Leon
5570b0b476
KeyChainGroup: Be smarter about encryption order.
...
This partly reverts commit 4ed5b0e3b0
.
2019-03-30 22:19:58 +01:00
Matthew Leon
9b934ebcde
Wallet: Eliminate a redundant null check.
2019-03-30 22:05:30 +01:00
liudongpo
70ac920845
ProtobufConnection: Make message length check more readable.
2019-03-30 21:43:05 +01:00
Oscar Guindzberg
52804fc8ce
PeerGroup.triggerConnectionsJob: Code cleanup.
2019-03-30 21:37:28 +01:00
Oscar Guindzberg
6c944f4142
WalletAppKit: Clear the blockchain file (as opposed to delete it) in preparation for restore.
...
This adds a new clear() method to SPVBlockStore.
2019-03-30 21:30:34 +01:00
Andreas Schildbach
19ce48afd9
KeyChainGroupTest: Extract AES_KEY used in tests to constant because deriving the key is costly.
2019-03-28 10:28:46 +01:00
Matthew Leon
4ed5b0e3b0
KeyChainGroup: Fix NullPointerExceptions in encrypt() for the case of only a basic keychain.
2019-03-28 10:04:04 +01:00
Matthew Leon
e94fbe4403
WalletProtobufSerializer: Eliminate use of deprecated Protos.TransactionConfidence.Type.valueOf().
2019-03-26 10:31:21 +01:00
Matthew Leon
9dc2abc82e
MonetaryFormat: Fix equals() and hashCode().
2019-03-26 10:26:54 +01:00
Matthew Leon
c01450a32c
NetworkParameters: Make double-checked locking on defaultSerializer safe with volatile keyword.
2019-03-26 10:20:09 +01:00
Matthew Leon
de8a1f755b
Avoid use of deprecated Throwables.propagate().
2019-03-25 09:53:15 +01:00
Matthew Leon
89fd7a89ce
KeyCrypterScrypt: Migrate AESFastEngine to AESEngine.
...
AESFastEngine raises a deprecation warning. See https://nvd.nist.gov/vuln/detail/CVE-2016-1000339
2019-03-24 12:08:38 +01:00
Andreas Schildbach
83b1e44d7d
settings.gradle: Prefix project names by 'bitcoinj-'.
2019-03-24 10:34:23 +01:00