Andreas Schildbach
9e46997159
Message: Fix one constructor doesn't set the protocol version.
2019-01-29 22:34:34 +01:00
Andreas Schildbach
4d4c68bb70
Script: An empty script will return <empty> in toString().
2019-01-29 22:32:42 +01:00
Andreas Schildbach
25f1a976ec
RedeemData: Implement toString().
2019-01-29 22:30:20 +01:00
Andreas Schildbach
3614144e17
Wallet: Fix canSignFor() for CLTV payment channels.
2019-01-29 22:27:42 +01:00
Andreas Schildbach
e2b17d8bf0
Wallet: Fix missing else.
2019-01-29 22:25:00 +01:00
Andreas Schildbach
855f476482
Wallet: Add private key warning to top of toString() output.
2019-01-29 22:19:13 +01:00
Andreas Schildbach
4d8b7db001
Wallet: List all balance types in toString().
2019-01-29 22:18:58 +01:00
Andreas Schildbach
8d4f79a783
Wallet: Reformat transaction statistics in toString().
2019-01-29 22:18:41 +01:00
Andreas Schildbach
bf03a26021
DeterministicKeyChainTest: Get rid of the KeyChainFactory subclass. It doesn't test anything.
2019-01-26 23:43:03 +01:00
Andreas Schildbach
64f95b1c13
DeterministicKeyChainTest: Add various account path asserts.
2019-01-26 23:22:00 +01:00
Andreas Schildbach
c65f6ac3a2
KeyChainFactory: Remove redundant makeKeyChain() variant.
2019-01-26 21:04:13 +01:00
Andreas Schildbach
716cf93716
DeterministicKeyChain, MarriedKeyChain: Simplify build().
2019-01-26 19:53:49 +01:00
Andreas Schildbach
04433862cd
DeterministicKeyChain.Builder: Make seedCreationTimeSecs() a parameter of entropy(), as all other forms of root come with their own creation time.
2019-01-26 19:15:06 +01:00
Andreas Schildbach
f40e16aac4
DeterministicSeed, DeterministicKeyChain: Remove seedCreationTimeSecs parameter from constructors that create the seed itself.
2019-01-26 19:14:26 +01:00
Andreas Schildbach
0e2b7cf979
DeterministicKeyChain.Builder: Handle a custom accountPath.
...
Use that feature to get rid of DeterministicKeyChainTest.AccountOneChain and AccountTwoChain.
2019-01-26 17:24:44 +01:00
Andreas Schildbach
30a066797d
DeterministicKeyChain.Builder: Use constant for default entrophy.
2019-01-26 14:37:45 +01:00
Oscar Guindzberg
5d9f25b03a
In comments and one log output, use wording "best chain" instead of "main chain".
2019-01-25 14:52:08 +01:00
Nicola Atzei
0833fe1cea
In JavaDocs change <tt> tags to @code.
2019-01-04 18:36:59 +01:00
Andreas Schildbach
0875d4a5b3
ECKey: If DER-encoded signatures cannot be parsed, throw SignatureDecodeException rather than RuntimeException.
2019-01-03 11:55:32 +01:00
Andreas Schildbach
64e74d3a56
Script: Remove deprecated decodeFromBitcoin() variant.
2019-01-03 11:55:32 +01:00
Oscar Guindzberg
9485db40e8
MarriedKeyChain: Clarify that just bare (non-P2SH) multisig txs which require more than 3 public keys are non-standard.
2019-01-03 11:52:31 +01:00
Chang Ming
d953ced801
Transaction: Calculate signature for witness transactions.
...
Adds calculateWitnessSignature() and hashForSignatureWitness() variants.
2019-01-03 11:43:17 +01:00
Stephan Oeste
81c262ab4c
MainNetParams: Add dnsseed.emzy.de to DNS seeds.
...
ACK https://github.com/bitcoin/bitcoin/blob/master/doc/dnsseed-policy.md
I'm willing to keep it up and running, unless something bad happens.
I have 15+ years experience running dns servers.
About my setup:
- the server may change over time, but the service will be up all the time
- running [sipa/bitcoin-seeder](https://github.com/sipa/bitcoin-seeder ) with default settings (and the non-root port redirect)
2019-01-03 11:34:17 +01:00
Andreas Schildbach
828036cb4a
DRMWorkaround: Skip workaround on OpenJDK.
2019-01-02 16:56:35 +01:00
Andreas Schildbach
74b642844d
Utils: Use enum for caching of operating system too.
2019-01-02 16:41:20 +01:00
Andreas Schildbach
cdbf9ecc9f
Utils: Add isOpenJDKRuntime() and isJavaSERuntime() helpers.
2019-01-02 16:40:58 +01:00
Oscar Guindzberg
39386853a1
KeyChainGroup: Remove not precise comment.
...
This constructor is in fact "Used for deserialization" but not only for deserialization.
2019-01-02 16:00:16 +01:00
Oscar Guindzberg
b9c2b61712
DRMWorkaround: Remove final modifier from JceSecurity.isRestricted().
...
This is needed for Oracle JDK 8 (u192).
2019-01-02 15:52:20 +01:00
Chang Ming
23e74cee90
Fix some missed SpongyCastle to BouncyCastle migrations in JavaDocs.
2018-12-13 12:56:39 +01:00
Andreas Schildbach
7b0a9c207f
Update Guava to 25.1-android.
2018-11-27 13:41:58 +01:00
Andreas Schildbach
092335e6fe
Update OkHttp to 3.12.0.
2018-11-27 13:29:12 +01:00
Oscar Guindzberg
38658a1ced
DeterministicKey: Fix JavaDoc comment.
2018-11-27 13:18:55 +01:00
Andreas Schildbach
2992cc16ff
build.gradle: Specify source encodings.
2018-10-31 11:12:49 +01:00
Andreas Schildbach
64ab2d4519
Update BouncyCastle to 1.60.
2018-10-26 12:21:24 +02:00
Andreas Schildbach
ad262de961
Migrate from SpongyCastle back to BouncyCastle.
...
Google moved their broken BouncyCastle out of the way with Android 3.0
(see 0ac85ead96
%5E%21/).
2018-10-23 16:09:10 +02:00
Andreas Schildbach
5c768c6ae5
Migrate use of BouncyCastle/SpongyCastle Hex encoder to Guava BaseEncoding.
2018-10-23 16:05:44 +02:00
Andreas Schildbach
98e17db898
Remove non-responding seeds and sync seeds with Bitcoin Core.
2018-10-17 01:08:02 +02:00
Alok Menghrajani
b9adef2719
LevelDBFullPrunedBlockStore: Fix typo in exception message.
2018-09-20 21:04:26 +02:00
Alok Menghrajani
6b79d5e43b
Fix typos/spelling issues in comments.
2018-09-20 20:58:29 +02:00
tau3
0c96402fc0
TxConfidenceTable: Fix a lock in seen() and add a test.
2018-09-04 16:34:25 +02:00
Andreas Schildbach
5df91ca886
Wallet: Check early for null context or params.
2018-08-01 19:31:11 +02:00
BigAdam2005
49ea1de34b
LegacyAddressTest: Extend test dataset and move it to a classpath resource.
2018-07-27 14:19:17 +02:00
Andreas Schildbach
6e85ea391d
build.gradle: Version control generated protobuf files again.
...
This effectively reverts commit 002fe8184cf6121856c966272d00f7a80c97b803. It lead to too much support hassle.
2018-07-27 14:14:12 +02:00
BigAdam2005
4a316089fa
Add BlockLocator class for representing block locators as used in GetBlocksMessage and GetHeadersMessage.
2018-07-13 18:44:36 +02:00
ueno
2ec193f847
Wallet: Fix null pointer exception that happens when using witness program on addWatchedAddress().
2018-06-18 11:10:11 +02:00
Oscar Guindzberg
694955c98b
Message.readBytes(): Fail fast if length is too large
2018-05-09 21:20:28 +02:00
Oscar Guindzberg
26adf68948
Limit initial size of some structures
...
Limits initial size of these structures:
- Inputs and Outputs in Transaction
- Transactions in Block
- Hashes in PartialMerkleeTree
The fix prevents this DoS attack:
- Somehow the attacker needs to get a p2p connection to the bitcoinj node.
- The attacker sends a tx msg that says the tx contains a trillion inputs (or a similar msg attacking any other of the structures described above).
- bitcoinj tries to instantiate an ArrayList with a size of a trillion.
OutOfMemoryError and the bitcoinj node is down.
2018-05-08 13:51:26 -03:00
Oscar Guindzberg
a6c356c403
TransactionWitness: Store pushes in a List<byte[]>
...
This is a pre-requisite to fix the exploit to its initial size
2018-05-08 13:44:39 -03:00
Andreas Schildbach
002fe8184c
build.gradle: Don't version control generated protobuf files.
2018-05-05 18:56:29 +02:00
Andreas Schildbach
fb33e72ad2
SPVBlockStore: Fix JavaDoc param.
2018-05-01 23:03:40 +02:00