Andreas Schildbach
58ca1d1d8c
BasicKeyChain: Extract toString() from KeyChainGroup.
2019-02-03 16:49:23 +01:00
Andreas Schildbach
3fea6428ef
Wallet: Fix JavaDoc for setKeyRotationTime() and accept null argument to stop key rotation.
2019-02-03 11:42:17 +01:00
Andreas Schildbach
09deb02aec
MonetaryFormatTest, BtcFormatTest: Disable locale-sensitve tests that surface non-determinism between OpenJDK versions.
2019-02-03 02:35:41 +01:00
Andreas Schildbach
4fd144d71d
Refresh bundled checkpoints.
2019-02-02 22:30:06 +01:00
Andreas Schildbach
7ddd5a49dd
ScriptBuilder: Rename createOutputScript(ECKey) to createP2PKOutputScript and add a byte[] variant.
2019-02-02 21:49:33 +01:00
Andreas Schildbach
2dd2acd4a8
DeterministicKeyChain, MarriedKeyChain: Remove most constructors and static constructors. Those that remain are considered an unstable API.
...
Migrate all use of constructors to use the builders instead.
2019-02-02 21:46:44 +01:00
Andreas Schildbach
16c7d03e1f
Script: Include stack dump in exception messages in correctlySpends().
2019-02-02 16:36:25 +01:00
Andreas Schildbach
c8caff20cd
Transaction: Rename parameters redeemScript and connectedScript to scriptCode in witness signature methods.
2019-02-02 16:34:32 +01:00
Andreas Schildbach
a5fd9c6848
KeyBag: Rename method findKeyFromPubHash() to findKeyFromPubKeyHash().
2019-02-01 18:02:20 +01:00
Andreas Schildbach
53908d8939
KeyBag, TransactionBag: Rename parameters pubkey to pubKey, pubkeyHash to pubKeyHash.
2019-02-01 18:01:45 +01:00
Andreas Schildbach
01daaf5815
TransactionOutput: Fix incomplete isMine() implementation.
2019-02-01 17:13:08 +01:00
Andreas Schildbach
492b3c7f8d
Wallet: Add findKeyFromAddress() convenience method.
2019-02-01 17:13:08 +01:00
Andreas Schildbach
68c5a622d2
Wallet: Add isAddressMine() convenience method.
2019-02-01 16:11:17 +01:00
Andreas Schildbach
e3e4e3f32a
PeerGroup: Fix NullPointerException in handleNewPeer() if no download peer could be selected.
2019-02-01 02:32:58 +01:00
Andreas Schildbach
5d6ae4082b
PeerGroup: Fix IndexOutOfBoundsException if no peer fits the criteria when selecting the download peer.
2019-02-01 02:30:26 +01:00
Andreas Schildbach
efaae76fa9
PeerGroup: Log last download peer on shutdown.
2019-02-01 02:27:27 +01:00
Andreas Schildbach
0230a25b23
Peer: Don't refresh the filters every 25.000 blocks.
...
Reasons:
- The implementation was bugged, because it overwrites the server filter with an outdated (not
updated according to NODE_UPDATE_* flags) filter, potentially causing missing transactions.
- Refreshing a filter in-flight has privacy issues.
- According to the comment it isn't even needed any more, due to false positive rate tracking.
2019-01-31 23:55:19 +01:00
Andreas Schildbach
2254bd9777
Peer: Also connect to peers which serve only the last two days worth of blocks, but download only from those that have the full blockchain.
...
This implements BIP159.
2019-01-31 21:38:33 +01:00
Andreas Schildbach
0c2a9e646c
Peer: Implement proper toString().
2019-01-31 21:35:25 +01:00
Andreas Schildbach
8ca8c64824
TransactionTest: Comment hex fields in testWitnessSignature*() tests.
2019-01-30 21:31:41 +01:00
Andreas Schildbach
f268a23898
BloomFilter: Add insert(TransactionOutPoint) variant.
2019-01-30 21:28:38 +01:00
Andreas Schildbach
389fb1f78c
BloomFilter: Include nFlags in toString().
2019-01-30 21:25:10 +01:00
Andreas Schildbach
8d6f562181
ScriptBuilder: Add createP2WSHOutputScript() helpers.
2019-01-30 08:44:27 +01:00
Andreas Schildbach
a8129b68f9
ScriptBuilder: Make use of createP2SHOutputScript().
2019-01-30 02:07:39 +01:00
Andreas Schildbach
0db2a5f183
ScriptBuilder: Add createP2PKHOutputScript() helpers.
2019-01-30 01:57:01 +01:00
Andreas Schildbach
47659e73d7
Address: Add fromKey() helper method.
2019-01-29 22:45:26 +01:00
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