Jakob Janecek
f2e59611f1
Block: Access transactions via getter rather than directly through the field.
2019-04-22 17:03:31 +02:00
Sean Gilligan
c2253d2e97
MainController: Replace EasyBind with two static methods.
...
This removes the dependency on EasyBind.
2019-04-22 09:06:09 +02:00
Tiberiu Nitan
537b244bfa
BuildCheckpoints: Wrap streams in try/finally block to avoid possible resource leaks.
2019-04-22 08:46:28 +02:00
Andreas Schildbach
7fbc5554a3
.travis.yml: Pick several combinations of JDK version and Gradle version to use.
2019-04-21 23:43:16 +02:00
Andreas Schildbach
581c36b185
.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-04-21 23:43:16 +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
Andreas Schildbach
bfeb808b3b
Require Gradle 4.4 for building.
2019-04-18 16:28:04 +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
Sean Gilligan
8a38cc3979
settings.gradle: Better document and enforce min Gradle and JDK versions for build.
...
* Create variables for min Gradle version for basic build, Java FX build
* Throw exception if Gradle less than minimum version
* Change existing println statements to print to stderr
2019-04-10 12:27:55 +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
Sean Gilligan
c18cf90a8e
build.gradle: Remove redundant wallet_template Gradle task.
2019-04-08 11:11:51 +02:00
Sean Gilligan
3538d3342e
ClickableBitcoinAddress: Write QR code directly to a JavaFX image, rather than transitioning through a PNG image.
...
This gets rid of the ZXing-JavaSE dependency.
2019-04-07 11:34:45 +02:00
Sean Gilligan
560e128458
build.gradle: Replace usage of QRGen by direct usage of ZXing 3.3.3 for generating QR codes.
2019-04-06 17:14:59 +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
Sean Gilligan
7b934591e5
Update EasyBind to 1.0.3.
2019-04-05 10:28:32 +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