Commit Graph

2974 Commits

Author SHA1 Message Date
Andreas Schildbach
e0e8ecbd69 Update to Guava 24.0-android. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
95c225a4ff Update to maven-surefire-plugin 2.20.1. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
ec28f13355 Update to maven-source-plugin 3.0.1. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
5881404c94 Update to maven-site-plugin 3.7. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
7e788657e1 Update to maven-shade-plugin 3.1.0. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
03df9f303a Update to maven-resources-plugin 3.0.2. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
b70e4521b9 Update to maven-javadoc-plugin 3.0.0. 2018-02-23 12:24:06 +01:00
Andreas Schildbach
5ee55fe1f2 Update to maven-jar-plugin 3.0.2. 2018-02-23 02:04:33 +01:00
Andreas Schildbach
607ddcf124 Update to maven-enforcer-plugin 3.0.0-M1. 2018-02-23 02:04:33 +01:00
Andreas Schildbach
4dce437e82 Update to maven-dependency-plugin 3.0.2. 2018-02-23 02:04:33 +01:00
Andreas Schildbach
15d5d444c6 Update to maven-compiler-plugin 3.7.0. 2018-02-23 02:04:33 +01:00
Andreas Schildbach
41fd06a739 Update to maven-clean-plugin 3.0.0. 2018-02-23 02:04:33 +01:00
Andreas Schildbach
90f35ca8aa Target Java 7 for core
Now that Android KitKat (4.4) seems to be the baseline for apps, we can make the switch to Java 7
official. We can finally use all language features (including try-with-resources) and most of the
API (not all, the Android API is still missing some packages).
2018-02-23 00:53:09 +01:00
Andreas Schildbach
e5ec3a6a95 Transaction: Lower REFERENCE_DEFAULT_MIN_TX_FEE to 1000 and MIN_NONDUST_OUTPUT to 546.
These limits are still a thing these days both for relaying and mining transactions.
2018-02-22 20:27:44 +01:00
Andreas Schildbach
04f9de20d4 Use java.util.Arrays for cloning byte arrays. 2018-02-22 20:27:44 +01:00
Andreas Schildbach
0a54554413 ScriptChunkTest: Use Guava for concatenating byte arrays. 2018-02-22 20:10:05 +01:00
Andreas Schildbach
b455ebc635 Use Utils.uint*() and Utils.readUint*() methods for all remaining instances where we still did the bit stuffing manually. 2018-02-22 15:32:55 +01:00
Andreas Schildbach
aa593f46cd Utils: Reorder. 2018-02-22 12:32:52 +01:00
Andreas Schildbach
13828ce311 Utils: Add some missing documentation. 2018-02-22 12:29:38 +01:00
Andreas Schildbach
76c4f03d63 Utils: Rename uint64ToByteArrayLE() helper to int64ToByteArrayLE(), as the implementation is actually signed. 2018-02-22 12:21:59 +01:00
Andreas Schildbach
90636275af Utils: Remove unused and untested isLessThanUnsigned() and isLessThanOrEqualToUnsigned() helpers. 2018-02-22 11:53:49 +01:00
Andreas Schildbach
4daac38758 Utils: Inline getResourceAsString() into DeterministicKeyChainTest, as it's only being used there. 2018-02-22 11:43:26 +01:00
Andreas Schildbach
84048b565b Utils: Move parseAsHexOrBase58() to WalletTool, as it's only being used there. 2018-02-22 11:34:25 +01:00
Andreas Schildbach
e855030204 Utils: Move formatMessageForSigning() to ECKey, as it's only being used there. 2018-02-22 11:28:16 +01:00
Andreas Schildbach
96bdad5a67 Utils: Move copyOf() to UnsafeByteArrayOutputStream, as it's only being used there. 2018-02-22 11:08:58 +01:00
Andreas Schildbach
0fd8ab3fa2 Utils: Remove unused and untested appendByte() helper. 2018-02-22 10:54:45 +01:00
Andreas Schildbach
8295afc03b Utils: Remove reverseDwordBytes(), it wasn't used. 2018-02-22 10:47:07 +01:00
Andreas Schildbach
4300b2ee40 Replace use of Charset.forName() with Guava Charsets constants. 2018-02-22 10:37:10 +01:00
Andreas Schildbach
b50eddb0a2 Utils: Remove toString() and toBytes() helpers, use new String() and getBytes() with Guava charsets instead. 2018-02-22 10:21:14 +01:00
Andreas Schildbach
b6ecc380b8 Utils: Remove closeUnchecked() helpers, use Guava instead. 2018-02-22 10:09:30 +01:00
Andreas Schildbach
2b765d8aa8 Utils: Remove outdated comment. 2018-02-22 10:09:10 +01:00
Nicola Atzei
e42e6686cc ScriptChunk: Add method toByteArray(). 2018-02-21 23:35:05 +01:00
Andreas Schildbach
b87d22e2be Extract checked base58 encoding from Address to Base58. 2018-02-21 20:09:03 +01:00
Andreas Schildbach
eabc206b89 Base58Test: Independent methods for tests that expect an exception. 2018-02-21 19:48:05 +01:00
Andreas Schildbach
3ca4bd3792 Don't derive test classes from TestCase.
We have upgraded from JUnit 3 to JUnit 4 a while ago.
2018-02-21 19:41:46 +01:00
David Kingsbury
2acdb34948 MnemonicCode: Add null check for passphrase.
The null check is added due to a likely undesirable outcome when supplying a null passphrase.
If allowed, the salt will be "mnemonicnull", when one would expect only "mnemonic" due to the
following from BIP39 "If a passphrase is not present, an empty string "" is used instead."
2018-02-19 17:12:03 +01:00
Andreas Schildbach
c4d1f200a9 AddressTest: Fix cast. 2018-02-19 10:37:30 +01:00
harryge00
911f6d49c0 SendRequest example: Fix the print info. 2018-02-10 17:43:25 +01:00
Andreas Schildbach
9dd8e5ab92 WalletTool: New option --fee-sat-per-byte to set network fee in satoshi per byte. 2018-02-07 11:39:07 +01:00
HashEngineering
d3dca96a3c Allow watched keys to have account paths of an arbitrary length. 2018-02-07 11:32:43 +01:00
HashEngineering
be382c6800 Remove unnecessary accountPath parameter on watch key methods while preserving that the watched key account path can be arbitrary (does not have to be 0H). 2018-02-07 11:26:13 +01:00
Tomasz Ludek
4d0f15dc2e Wallet: Fix infinite recursion, causing StackOverflowError in deprecated version of Wallet.toString(boolean, boolean, boolean, AbstractBlockChain) method. 2018-02-05 20:04:45 +01:00
John L. Jegutanis
0ede3c7367 Script: Standard patterns are moved to a separate ScriptPattern class. 2018-02-05 19:55:07 +01:00
Andreas Schildbach
b6360e0858 CheckpointManagerTest: Fix name of test data directory. 2018-01-02 16:45:39 +01:00
Andreas Schildbach
3f2a8f11c5 Move some tests from ScriptTest to ScriptBuilderTest. 2018-01-02 16:41:11 +01:00
Nicola Atzei
3b80b707a5 ScriptBuilder: Add methods opTrue() and opFalse(). 2018-01-02 16:35:31 +01:00
Philip Whitehouse
e9469b3a72 Add test for CheckpointManager. 2018-01-01 13:52:02 +01:00
Nicola Atzei
6cc02d24b1 Script: Improve error reporting of CHECKSEQUENCEVERIFY. 2018-01-01 13:42:23 +01:00
Andreas Schildbach
c927f0238b Rename variable peers to peerGroup, as the name can be misleading. 2017-12-21 12:47:13 +01:00
Nelson MELINA
e036f8174a Allow to create wallets with an arbitrary account path. Adds a test for BIP44 wallets (account zero only).
Authors: Nelson MELINA <nelson.melina@mycelium.com>, Giuseppe Magnotta <giuseppe.magnotta@gmail.com>
2017-11-27 22:22:25 +01:00