Commit Graph

  • bde0df8e1c Peer: better logging for reject messages Mike Hearn 2015-01-12 16:43:13 +01:00
  • 6efa8a4fac PeerGroup: Don't rethrow a runtime exception and kill the peer if a broadcast takes an exception, this can occur if there is a reject message. Mike Hearn 2015-01-10 00:51:48 +01:00
  • 7970b52504 PeerGroup: Locking fix in newly added method. A bit more logging. Mike Hearn 2015-01-10 00:51:00 +01:00
  • 11463e729f Add a feature to PeerGroup that lets you find/wait for peers that match a certain mask, similar to those methods that exist for peer versions. Mike Hearn 2015-01-09 15:17:56 +01:00
  • b984124ce2 Add javadocs to GetUTXOsMessage and add the service mask required for the feature. Mike Hearn 2015-01-09 15:17:28 +01:00
  • 59c1f23931 Adjust getutxo min protocol version. Mike Hearn 2015-01-08 18:35:19 +01:00
  • 57bbb9152b Give regtest a payment protocol ID too. Mike Hearn 2015-01-08 18:35:11 +01:00
  • e09e383007 Give unit test params a payment protocol ID. Mike Hearn 2015-01-07 16:44:10 +01:00
  • 0b5b101343 Abstract out multiplexing from DnsDiscovery. Mike Hearn 2015-01-07 16:43:45 +01:00
  • e58dfe1049 Update README langerhans 2015-01-06 20:55:26 +01:00
  • b3b8c0eb8d Merge remote-tracking branch 'upstream/master' into rebase langerhans 2015-01-06 20:52:03 +01:00
  • f36576ce29 WalletAppKit to use new Wallet.reset(). Andreas Schildbach 2015-01-06 15:02:11 +01:00
  • e6fc3deb50 Merge remote-tracking branch 'upstream/master' into rebase langerhans 2015-01-04 20:33:24 +01:00
  • f6d3c1b305 Fix the params langerhans 2015-01-04 19:09:19 +01:00
  • 2fa5ba30e2 DefaultRiskAnalysis.isStandard checks for signatures to use canonical DER encoding. Adds a test. Andreas Schildbach 2014-12-20 01:15:47 +01:00
  • 121d2fcb63 Change the WatchMempool pool to build statistics about risk analysis. Removes the pay-to-pubkey detection which was in there. Andreas Schildbach 2014-12-21 18:51:24 +01:00
  • e8e13de4d4 Restrict access to ECKey.CURVE_PARAMS. The field is almost redundant. Parameters can be fetched from ECKey.CURVE as well. Andreas Schildbach 2014-12-19 21:02:34 +01:00
  • 17071ce15c Extract ECDSASignature.isCanonical() which checks for BIP62 low S value. Adds a test. Andreas Schildbach 2014-12-19 20:44:19 +01:00
  • 18c63a703f When connecting outputs to inputs, cache its value in the input. This will make sure the fee is also known after a blockchain replay. Andreas Schildbach 2014-12-19 23:27:46 +01:00
  • 4d3297d334 Add Wallet.reset() to prepare the wallet for a blockchain replay. Andreas Schildbach 2014-12-23 23:04:57 +01:00
  • ac12628289 Higher precision for Fiat values in DOGE land langerhans 2014-12-31 19:23:51 +01:00
  • e00a5b2776 Comment out unittest params for now. langerhans 2014-12-30 19:19:28 +01:00
  • e77089f739 NPE when invoking PeerGroup.broadcastTransaction() on peer group with no block chain. Adam Mackler 2014-12-28 07:17:43 -05:00
  • 1fae7cadc9 Add creationTimeSeconds to wallet dump. Andreas Schildbach 2014-12-17 10:49:29 +01:00
  • 3d7d649827 Creating a useful shaded jar, that can be run with java -jar. Tyler Houlihan 2014-12-19 15:13:27 -05:00
  • 905629a78f Merge branch 'master' of https://github.com/bitcoinj/bitcoinj into rebase langerhans 2014-12-23 18:09:55 +01:00
  • f82f160c2c PeerGroup: configure peer as download peer even when there is no chain, but don't configure download params as that would trigger block fetch. Mike Hearn 2014-12-21 14:03:13 +01:00
  • 8f219ff458 WatchMempol: fix a regression Mike Hearn 2014-12-21 13:57:17 +01:00
  • 2b6db0dc80 Add an experimental HTTP based peer discovery engine that uses signed gzipped protocol buffers. Mike Hearn 2014-12-19 02:30:58 +01:00
  • 483f9b50e6 WalletAppKit: allow customisation of the peer discovery engine. Mike Hearn 2014-12-19 02:29:44 +01:00
  • 211966b17b ECKey: add throwing variants of the verify methods. Can help avoid mistakes when ignoring the result of verify. Mike Hearn 2014-12-19 02:29:23 +01:00
  • b00930efcd ECKey: clarify name of parameter Mike Hearn 2014-12-19 01:53:16 +01:00
  • 92e28bb516 Quieter logging in ConnectionHandler Mike Hearn 2014-12-18 14:17:04 +01:00
  • 4a4691596b NioClientManager: change logging levels Mike Hearn 2014-12-18 14:01:47 +01:00
  • 2967e07c8b Change how DownloadProgressTracker waits for progress to avoid possible deadlocks. Mike Hearn 2014-12-18 13:59:28 +01:00
  • b25899de58 Rename DownloadListener to DownloadProgressTracker Mike Hearn 2014-12-18 13:37:05 +01:00
  • 36850b1d0e Add warning about randomly generated keys to Wallet constructor. Andreas Schildbach 2014-12-17 23:17:57 +01:00
  • 89c53a8f8e Add Wallet.fromKeys(). Creates a wallet containing a given set of keys. All further keys will be derived from the oldest key. Andreas Schildbach 2014-12-17 23:09:27 +01:00
  • ae585608e6 ClientConnectionManager.openConnection now returns a future. Some logging about connection failures was removed. Mike Hearn 2014-12-18 02:23:21 +01:00
  • 200dc1294c Peer: Fix some more crashes that can occur when operating without a blockchain object Mike Hearn 2014-12-17 19:23:13 +01:00
  • c18423fde3 Peer: utility for requesting addr data Mike Hearn 2014-12-17 18:58:32 +01:00
  • 54edb541a2 Peer: Add a convenience accessor Mike Hearn 2014-12-17 18:58:16 +01:00
  • 9025a65334 Block tester: Bring back UTXO rules when the local node supports them Mike Hearn 2014-12-17 01:23:28 +01:00
  • aed7c438ea DatabaseFullPrunedBlockStore: more detailed error message Mike Hearn 2014-12-17 01:23:14 +01:00
  • bbd82746ee FullPrunedBlockChain: don't log if script is unparseable and simplify getScript function. Mike Hearn 2014-12-17 01:22:42 +01:00
  • 7b83e330df Regen proto files Mike Hearn 2014-12-17 01:21:16 +01:00
  • 6c01d45da7 Update logo Mike Hearn 2014-12-16 17:04:10 +01:00
  • bc24661254 Fix for issue 539, adds atomic operation for changing wallet encryption key/password. Wojciech Langiewicz 2014-12-12 21:29:44 +01:00
  • 4e313661df Add isPubKeyOnly and isEncrypted to both ECKey.toString() and DeterministicKey.toString(). Andreas Schildbach 2014-12-11 20:58:45 +01:00
  • b2526f0b4d Throw when trying to set creation time of a DeterministicKey that is a leaf in the hierarchy. It would be needlessly stored, but unreadable. Andreas Schildbach 2014-12-11 21:22:54 +01:00
  • eb24bafdbc Guard BasicKeyChain.importKey*() against accidently importing the same key twice, potentially losing a private key. Andreas Schildbach 2014-12-11 21:40:16 +01:00
  • e5bc481743 Make curve and bits in LazyECPoint final. Andreas Schildbach 2014-12-11 22:40:13 +01:00
  • 4499e0f7c1 Add some logging to LinuxSecureRandom. Andreas Schildbach 2014-12-10 16:10:27 +01:00
  • 5aaf6a25db When running on Android, automatically insert LinuxSecureRandom provider. Andreas Schildbach 2014-12-10 15:56:48 +01:00
  • 525ad3504d Move LinuxSecureRandom from Bitcoin Wallet to bitcoinj. This class is in use since August 2013 without any signs of RNG issues. Andreas Schildbach 2014-12-08 22:29:21 +01:00
  • ef6240a8f8 Transaction.toString(): Don't try printing hash160 for non-address type outputs Mike Hearn 2014-12-09 14:23:41 +01:00
  • ab0b6d75fa Script: fix javadoc Mike Hearn 2014-12-09 14:23:23 +01:00
  • 46ed65935c Add Wallet.getIssuedReceiveKeys() and Wallet.getIssuedReceiveAddresses() so that derived addresses can be shown in an UI. Andreas Schildbach 2014-10-21 16:04:36 +02:00
  • b3c761388f Fix build, somehow this didn't show up before. Mike Hearn 2014-12-08 22:13:40 +01:00
  • fef4829a3d PeerGroup: log exceptions in executor jobs, as the executor doesn't do this itself (gah) Mike Hearn 2014-12-08 22:10:39 +01:00
  • 0a34914d16 TransactionBroadcast: Member variable to local Mike Hearn 2014-12-07 13:18:01 +02:00
  • 40c4338aaa Some fixes for crashes that could occur with a chain-less PeerGroup post-TxConfidenceTable changes. Mike Hearn 2014-12-07 13:17:35 +02:00
  • 478fb5dac9 Fix Integer to long casting compiler error for Eclipse. Andreas Schildbach 2014-12-05 17:03:35 +01:00
  • 7625fccd22 Move comment about Java 6 compilation to the appropriate places. Andreas Schildbach 2014-12-06 16:03:32 +01:00
  • 8acf2e91e8 Add a BIP70 example to the javascript folder Mike Hearn 2014-12-04 18:51:45 +01:00
  • d438caaece Widen arg types for Transaction.getInput and getOutput so they can be fed the result of TransactionOutPoint.getIndex() directly. Mike Hearn 2014-12-04 17:50:37 +01:00
  • 757e25ba9b Wallet: fix a bug that could cause a temporarily corrupted balance, when two pending transactions arrive backwards Mike Hearn 2014-12-04 17:09:53 +01:00
  • fccb6f03bd WalletAppKit: allow restore from wallet seed even when there are no checkpoints i.e. regtest mode Mike Hearn 2014-12-04 15:57:34 +01:00
  • 625d19230d PeerGroup: don't keep trying every second when discovery returns zero peers but we have enough connections anyway. Mike Hearn 2014-12-04 15:20:28 +01:00
  • 7d7f826367 Fix lock inversion tags<->wallet lock. Mike Hearn 2014-12-04 11:28:26 +01:00
  • 90dace2ef5 Java 8 syntax cleanup Mike Hearn 2014-12-03 13:09:23 +01:00
  • 1ba568e069 rename TxConfidencePool to TxConfidenceTable Devrandom 2014-12-01 11:32:56 -08:00
  • 2dfeee55b6 Clean up JavaDoc for deprecated PeerGroup.getConfidencePool Devrandom 2014-12-01 09:56:55 -08:00
  • bc3a5cd845 introduce a Context object vended by AbstractBlockChain Devrandom 2014-11-30 14:05:58 -08:00
  • beb6f0873f Mark unrelated flaky test Devrandom 2014-11-05 10:56:52 -08:00
  • b9bca58f26 Remove tx from TransactionConfidence Devrandom 2014-11-05 10:56:07 -08:00
  • ec7cec67a7 Rename MemoryPool to TxConfidencePool and make singleton Devrandom 2014-11-05 10:37:20 -08:00
  • 4854099cde Update AUTHORS file Mike Hearn 2014-12-03 13:01:28 +01:00
  • a2ac847ee9 Wallet.loadFromFile takes WalletExtensions Carlos Lopez 2014-11-29 00:41:04 -06:00
  • 96a82800fd 1) Update the full stores to return UTXO transactions. 2) The wallet can now use a UTXOProvider to create spends. 3) Updated MySQL field blob size. It's capacity isn't sufficient. 4) Updated internal objects to be able to cope with a null parent tx (spend free standing outputs). Kalpesh Parmar 2014-11-19 13:17:59 +00:00
  • 2286d7e167 Update AUTHORS Mike Hearn 2014-12-03 12:41:12 +01:00
  • 552bf3fa4d Use ArrayList instead of HashSet in DefaultCoinSelector#select. Test Bennett Hoffman 2014-11-29 00:05:15 -08:00
  • df00b1e27e PaymentChannelClient support encrypted wallets. Store will upgrade forward gracefully. Jarl Fransson 2014-11-09 20:21:48 +01:00
  • c017070398 Update README.md to mention Java 8. Andreas Schildbach 2014-11-24 15:47:58 +01:00
  • 4300cab9fc Configure Travis to compile everything using Java 8, then compile orchid and bitcoinj-core using Java 6. Andreas Schildbach 2014-11-20 16:08:55 +01:00
  • 2a71858c76 Wallet-template is now a proper sub-project. This reduces the risk for breaking the wallet-template build. Andreas Schildbach 2014-11-20 16:05:51 +01:00
  • 9286b25f9d Build bitcoinj-examples and bitcoinj-tools with Java 8. Bitcoinj-core and orchid still requires Java 6 so it can run on Android. Andreas Schildbach 2014-11-20 16:05:13 +01:00
  • ad87ee9a3c Consistently use version 2.9.1 of maven-javadoc-plugin. Andreas Schildbach 2014-11-20 15:45:47 +01:00
  • 77dd531be4 Fix potential race condition when checking keychain for key rotation time. Andreas Schildbach 2014-11-16 12:27:11 +01:00
  • acad3e985d Don't spam the log with setting key rotation time while loading wallets. Instead, print it with the wallet dump. Andreas Schildbach 2014-11-16 11:16:24 +01:00
  • 1db2316fc3 More attempts to fix build flakes. Mike Hearn 2014-11-24 14:24:35 +01:00
  • bd986f35f1 Bloom filtering: check for malformed Merkle trees. Resolves issue 593. Thanks to Pieter Wiulle. Mike Hearn 2014-11-24 13:59:42 +01:00
  • dfc9d3c924 Sha256Hash: remark that it takes ownership of the byte array. Mike Hearn 2014-11-24 13:59:00 +01:00
  • 9814a6caba Slightly different attempt to fix thread safety issue in PeerGroup to in #278 - make connectTo always locked. It used to be that we couldn't do this but there are no comments reminding me why not, and unit tests + wallettemplate seem happy with it being locked, so I think changes in the network code since then have probably removed this issue. Mike Hearn 2014-11-24 13:33:21 +01:00
  • 69de1f01ac ECKey/DeterministicKey: replace ECPoint with a LazyECPoint wrapper that doesn't delays parsing of key bytes into a key structure until it's needed. The process of decoding keys from the wallet previously involved decompressing/recompressing them which was taking ~seconds for hundreds of keys on Dalvik/2012 era Androids. After this patch loading such a wallet takes a few hundred milliseconds, most of which is spent inside RIPEMD160. Mike Hearn 2014-11-19 15:50:22 +01:00
  • 34017e16f8 TestWithPeerGroup: don't stopAsync if the peergroup isn't running and update the class description. Mike Hearn 2014-11-17 14:38:56 +01:00
  • 5a8ed59029 PeerGroup: Reimplement pinging to use the executor. New code is simpler and more correct. Mike Hearn 2014-11-13 23:31:36 +01:00
  • e7c00df740 Replace peerGroup.startAsync/awaitRunning with start() and awaitTerminated with stop(). Mike Hearn 2014-11-13 23:11:16 +01:00
  • 10340b13a6 Don't hold the peergroup lock whilst calculating bloom filters, and run on the executor thread. Move responsibility for deduplication into recalculateFastCatchupAndFilter(). Mike Hearn 2014-11-13 23:07:02 +01:00
  • 27bc229fab Rewrite how peer group manages connections and its internal thread: Mike Hearn 2014-11-13 22:45:52 +01:00