Commit Graph

  • 0444447615 Fixed type references in javadoc to avoid IntelliJ error reports on rebuild. Piotr Włodarek 2014-05-22 21:26:21 +02:00
  • 90fba7f907 Don't crash if there's no logging handler installed. Mike Hearn 2014-05-21 19:25:29 +02:00
  • bc8ec44d5d Wallet: keep risk dropped txns around in RAM and don't miss them when a Bloom filtered block includes them. Resolves issue 545. Mike Hearn 2014-05-21 16:50:17 +02:00
  • cb75f961ab Correctness fix: compare nBits directly not in BigInteger form as nBits has multiple non-canonical encodings. Mike Hearn 2014-05-21 15:09:52 +02:00
  • a2eca1c988 Reformat log messages in DnsDiscovery and add one log message for the success case, to make more clear what's going on. Andreas Schildbach 2014-05-21 13:19:51 +02:00
  • 8c81fb3c0d Add Addy's main net DNS seed and remove Matt's testnet seed as it doesn't work properly. Mike Hearn 2014-05-19 16:17:30 +02:00
  • 347a50f428 Fixed comment for Wallet.sendCoins regarding MIN_NONDUST_OUTPUT. Piotr Włodarek 2014-05-18 12:35:56 +02:00
  • 7248e23f0d BloomFilter: set a lower bound on nHashFuncs of 1: there must always be at least one function. Thanks to Kalpesh Parmar for debugging this. Mike Hearn 2014-05-13 13:06:48 +02:00
  • 319b36d2cf Tighten scope of the FileInputStream in WalletAppKit to avoid lock collisions on Windows. Resolves issue 556. Mike Hearn 2014-05-13 12:57:02 +02:00
  • 4b6187a950 Update script JSON files with latest changes from Peter Todd. Mike Hearn 2014-05-09 14:18:13 +02:00
  • 0d6349f0a8 Require PeerFilterProviders to expose a lock, and use them to avoid a race that occurs during Bloom filter construction. Mike Hearn 2014-05-08 00:33:01 +02:00
  • 59e36f5fcd Refactor bloom filter calculations out of PeerGroup into a separate FilterMerger class. Mike Hearn 2014-05-07 21:53:34 +02:00
  • 8e3a39b725 Correct the default thread used by AbstractBlockChain.addListener() Mike Hearn 2014-05-06 21:44:42 +02:00
  • d608e2a7a4 WalletFiles: don't delete temp file if rename failed. It might be the only copy of the wallet we have! Only really should affect Windows. Mike Hearn 2014-05-05 14:42:52 +02:00
  • e44844aba6 PaymentSession: Expose params and throw if transactions don't match requested params. Mike Hearn 2014-04-30 22:16:57 +02:00
  • cc42128008 Payment protocol: add PaymentSession.getNetworkParameters method. Mike Hearn 2014-04-07 14:58:55 +02:00
  • 5c98fd4399 Make wallets autosave every 200msec instead of every second. Also, save immediately upon creation of a fresh wallet in case the app doesn't sync to the network for some reason. Mike Hearn 2014-04-28 18:23:31 +02:00
  • 178d521fc6 Prepare 0.11.3-SNAPSHOT Andreas Schildbach 2014-05-28 10:17:21 +02:00
  • 9fe8e8ee2b Teach TransactionOutput.toString() to print send-to-pubkey and send-to-multisig types. Andreas Schildbach 2014-05-27 14:50:31 +02:00
  • c37423a737 renaming to nonexisting file on Windows Jiri Peinlich 2014-05-26 07:25:09 +02:00
  • 0442448621 Add qertoip to AUTHORS Mike Hearn 2014-05-27 13:18:56 +02:00
  • ccc3dbd339 Implement standard checks for BIP62 shortest possible data push rules. Also fix ScriptBuilder so it doesn't build longer than necessary data pushes any more. Andreas Schildbach 2014-05-26 16:26:22 +02:00
  • 7b24a72e45 Implement ScriptChunk.toString() by extracting relevant parts from Script.toString(). Andreas Schildbach 2014-05-27 09:59:43 +02:00
  • 9c8d2cc600 Renamed proofOfWorkLimit to maxTarget along with get/set and minor refactorings. Piotr Włodarek 2014-05-24 20:49:10 +02:00
  • c08c68fc5e Dealt with several compiler notices by verifying and then fixing or suppressing. Reduces compilation output noise. Piotr Włodarek 2014-05-23 14:03:37 +02:00
  • cc6090af88 Fixed type references in javadoc to avoid IntelliJ error reports on rebuild. Piotr Włodarek 2014-05-22 21:26:21 +02:00
  • b32d0cce17 Improved consistency and formal correctness of all existing .equals methods to meet IntelliJ's convention. Piotr Włodarek 2014-05-22 20:32:54 +02:00
  • ff8d76cf7e Include PUSHDATA opcode in Script.toString(). Also, smallNums are printed in their decoded form. Andreas Schildbach 2014-03-08 23:39:39 +01:00
  • c236ae418f Keep opcode in ScriptChunk representation of scripts. The goal is to know how data was pushed and be able to apply malleability rules. All unit-tests pass. Andreas Schildbach 2014-03-08 22:15:00 +01:00
  • b47995ed97 Wallet: throw more appropriate exception types during completion. Mike Hearn 2014-05-21 19:38:12 +02:00
  • 028a1cca69 Upgrade scrypt library. Mike Hearn 2014-05-21 19:25:38 +02:00
  • a07a810ed8 Don't crash if there's no logging handler installed. Mike Hearn 2014-05-21 19:25:29 +02:00
  • 467124a2b3 Wallet: keep risk dropped txns around in RAM and don't miss them when a Bloom filtered block includes them. Resolves issue 545. Mike Hearn 2014-05-21 16:50:17 +02:00
  • 665aa2c36c BuildCheckpoints: compare strings correctly. Mike Hearn 2014-05-21 15:20:02 +02:00
  • bc5b8bc927 Refresh wallet-template checkpoints file. Mike Hearn 2014-05-21 15:19:18 +02:00
  • ed2948cef1 Correctness fix: compare nBits directly not in BigInteger form as nBits has multiple non-canonical encodings. Mike Hearn 2014-05-21 15:09:52 +02:00
  • 4a5854a599 Reformat log messages in DnsDiscovery and add one log message for the success case, to make more clear what's going on. Andreas Schildbach 2014-05-21 13:19:51 +02:00
  • ee2a91010e PeerGroup: return the peers that match the requested protocol version in waitForPeersOfVersion. Mike Hearn 2014-05-20 17:51:32 +02:00
  • dfb3a763ce Add some convenience methods to Transaction for signing. Mike Hearn 2014-05-20 17:16:50 +02:00
  • 1fe0e7fa6c Add some JavaDocs to FakeTxBuilder Mike Hearn 2014-05-20 16:36:44 +02:00
  • 2548076fa6 Refactor TestWithPeerGroup a bit to make it more reusable in apps. Mike Hearn 2014-05-20 16:36:29 +02:00
  • 9e5a06120a Add a PeerGroup.waitForPeersOfVersion API and add unit tests for the waitForPeers* methods. Mike Hearn 2014-05-20 14:01:55 +02:00
  • f378bb3a43 Add Addy's main net DNS seed and remove Matt's testnet seed as it doesn't work properly. Mike Hearn 2014-05-19 16:17:30 +02:00
  • f7e982cee1 Minor refactorings in VersionedChecksummedBytes. Piotr Włodarek 2014-05-18 23:19:55 +02:00
  • e91cc443e9 Updated comment for WalletAppKit class to reflect deprecation of start and startAndWait in Guava. Piotr Włodarek 2014-05-18 20:46:58 +02:00
  • cd4219ccb1 Fixed comment for Wallet.sendCoins regarding MIN_NONDUST_OUTPUT. Piotr Włodarek 2014-05-18 12:35:56 +02:00
  • 443b62481d BloomFilter: set a lower bound on nHashFuncs of 1: there must always be at least one function. Thanks to Kalpesh Parmar for debugging this. Mike Hearn 2014-05-13 13:06:48 +02:00
  • cbd91c7ea1 Fixes to tagging, thanks to Andreas for the review. Mike Hearn 2014-05-13 13:00:01 +02:00
  • acebe8e3d2 Tighten scope of the FileInputStream in WalletAppKit to avoid lock collisions on Windows. Resolves issue 556. Mike Hearn 2014-05-13 12:57:02 +02:00
  • 408bca3433 Do tags lazily as was supposed to happen. Mike Hearn 2014-05-09 14:56:26 +02:00
  • d68b3b5108 Update script JSON files with latest changes from Peter Todd. Mike Hearn 2014-05-09 14:18:13 +02:00
  • 268dfe297f Add a simple API that lets you tag wallets with arbitrary string->byte[] pairs. Mike Hearn 2014-05-08 20:13:09 +02:00
  • c277dc7e4e Require PeerFilterProviders to expose a lock, and use them to avoid a race that occurs during Bloom filter construction. Mike Hearn 2014-05-08 00:33:01 +02:00
  • 46ad86a9af Refactor bloom filter calculations out of PeerGroup into a separate FilterMerger class. Mike Hearn 2014-05-07 21:53:34 +02:00
  • 26823d1bf7 Correct the default thread used by AbstractBlockChain.addListener() Mike Hearn 2014-05-06 21:44:42 +02:00
  • a893bdd603 PeerGroup: print a log warn if there's no blockchain. Mike Hearn 2014-05-05 22:32:46 +02:00
  • 0e74eba29f WalletFiles: don't delete temp file if rename failed. It might be the only copy of the wallet we have! Only really should affect Windows. Mike Hearn 2014-05-05 14:42:52 +02:00
  • fbbdbb576e Minor reformattings + more javadocs + rename signRequestPki to just signRequest as there are no other signing methods at the moment. Mike Hearn 2014-05-05 11:39:07 +02:00
  • cdfec498a4 Extract methods for creating and parsing payment requests, payment messages and payment acks, as well as Ack data class. Expose more payment request data from PaymentSession. Add unit tests for roundtripping all messages. Andreas Schildbach 2014-05-03 17:24:16 +02:00
  • bd49cd4027 Rename misnamed PaymentRequestException to PaymentProtocolException. It's used for payment messages and maybe payment acks as well. Andreas Schildbach 2014-05-03 18:23:39 +02:00
  • 28c16738bc Add a PeerGroup.connectToLocalhost helper method. Mike Hearn 2014-05-04 23:18:51 +02:00
  • 4df728a7d9 Wallet: add output shuffling (a second time - where did it go?!). It's optional for unit testing. Mike Hearn 2014-04-30 23:47:24 +02:00
  • c8ffc1eaee PaymentSession: Expose params and throw if transactions don't match requested params. Mike Hearn 2014-04-30 22:16:57 +02:00
  • 6160a2db3d Wallet: expose saveNow/saveLater to subclasses. Mike Hearn 2014-04-29 17:33:02 +02:00
  • 31c8f8b494 Make wallets autosave every 200msec instead of every second. Also, save immediately upon creation of a fresh wallet in case the app doesn't sync to the network for some reason. Mike Hearn 2014-04-28 18:23:31 +02:00
  • ebc52aca7a WalletTool: remove a couple of unused fields. Mike Hearn 2014-04-27 22:42:09 +02:00
  • 119d26fda2 Fix crash Mike Hearn 2014-04-26 00:32:23 +02:00
  • 3f3f637779 Integrate Tor support into the PeerGroup and WalletAppKit API. Mike Hearn 2014-04-27 18:57:56 +02:00
  • 6c3b6ce1b3 TorDiscovery: Be less spammy about timed out circuits. A lot always time out. Mike Hearn 2014-04-27 18:57:31 +02:00
  • d39cc8838e TorDiscovery: Bugfix. Guava now returns immutable lists from Futures methods (annoying). Mike Hearn 2014-04-27 18:11:50 +02:00
  • 9cfb420cdb Use unconnected socket in BlockingClient as before Devrandom 2014-04-24 13:14:18 -04:00
  • 23da335e57 Orchid: allow creation of unconnected socket Devrandom 2014-04-24 13:13:33 -04:00
  • 99448b730a Tor using the Orchid library Devrandom 2014-03-12 22:01:47 -07:00
  • c5e82e6bc5 Expose word list of MnemonicCode. It's useful for auto-completion. Andreas Schildbach 2014-04-25 19:44:58 +02:00
  • 8b8adc6fed Add a convenience method to MockTransactionBroadcaster.TxFuturePair Mike Hearn 2014-04-25 15:05:16 +02:00
  • 38e3f6fb9d Wallet: null out the candidates list after selection so selectors can edit the list if they want. Mike Hearn 2014-04-23 15:44:45 +02:00
  • 6e999c6054 Simplify the MockTransactionBroadcaster a bit and update the docs. Mike Hearn 2014-04-23 00:24:48 +02:00
  • bcc8055b7e Wallet: expose tx broadcaster to subclasses. Mike Hearn 2014-04-22 23:06:32 +02:00
  • dd7973c834 Implement equals/hashCode on TransactionInput. Mike Hearn 2014-04-22 21:53:35 +02:00
  • c43362e128 FakeTxBuilder: don't throw checked exceptions, it's just annoying. Mike Hearn 2014-04-22 16:51:12 +02:00
  • e1d6707626 Move some testing utilities to a new testing subpackage and rename TextUtils to reflect what it actually does. Mike Hearn 2014-04-22 16:48:49 +02:00
  • 98fc5827f2 Make some accessors on Ping/Pong public. Mike Hearn 2014-04-22 16:48:27 +02:00
  • 2733004e71 Release 0.11.2 v0.11.2 1756467732729057275/tmp_refs/tags/v0.11.2 Andreas Schildbach 2014-04-22 15:49:51 +02:00
  • 34dcef91a9 Fix size of encrypted bytes when encrypting private keys. Also change decrypting to use similar code. Andreas Schildbach 2014-04-21 16:39:54 +02:00
  • b8708c4680 Fix parsing of empty labels and messages, and parsing of labels and messages with an unescaped equals sign in their value. Andreas Schildbach 2014-04-21 18:51:07 +02:00
  • eceae231e8 Fix a crash that can occur if a peer reports a chain height of zero (this is a protocol violation but such crashes were seen in the wild). Mike Hearn 2014-04-22 14:02:03 +02:00
  • b4644fdf81 Fix size of encrypted bytes when encrypting private keys. Also change decrypting to use similar code. Andreas Schildbach 2014-04-21 16:39:54 +02:00
  • 53147fab16 Add switch to disable download of pending transaction dependencies. This becomes necessary because the current recursive download strategy is often triggering a stack overflow on Android devices. Andreas Schildbach 2014-04-18 12:48:33 +02:00
  • b0fa5435a2 Fix parsing of empty labels and messages, and parsing of labels and messages with an unescaped equals sign in their value. Andreas Schildbach 2014-04-21 18:51:07 +02:00
  • b3162cbc17 Fix a crash that can occur if a peer reports a chain height of zero (this is a protocol violation but such crashes were seen in the wild). Mike Hearn 2014-04-22 14:02:03 +02:00
  • 30cc5c6a12 Adjust MIN_NONDUST_OUTPUT down to 546 only for risk analysis. This is required because we start seeing more and more transactions using the new fee rules introduced with Bitcoin Core 0.9. Andreas Schildbach 2014-04-18 11:51:15 +02:00
  • 4faa8b486c TransactionInput: verify(): don't crash if the given output has no parent. Clears a static analysis warning. Mike Hearn 2014-04-07 18:16:34 +02:00
  • ea8e122cef Cheap test to see if an input stream is a wallet. Andreas Schildbach 2014-04-05 23:07:01 +02:00
  • 1bc77f843b More mock clock conversions, to avoid failures when running test cases independently. Mike Hearn 2014-04-04 15:06:45 +02:00
  • 60b0d917e7 Fix unit test broken by less aggressive backoff time. Mike Hearn 2014-04-04 15:23:56 +02:00
  • 95009f0310 PeerGroup: tweak global backoff to be faster. Mike Hearn 2014-04-01 16:53:00 +02:00
  • 86e63fb048 PeerGroup: bugfixes to backoff. Mike Hearn 2014-04-01 16:47:51 +02:00
  • f399dafefc Fix race of mock clock with current time if tests are all run sequentially. This commit requires you to use one of the setMockClock() variants before being able to roll it. Andreas Schildbach 2014-03-29 10:26:57 +01:00
  • d5ffe88cff In Transaction.toString(): For outpoints, show the pubkey-hash of the connected output (if available). This makes it easier to debug wallets. Andreas Schildbach 2014-03-13 13:53:58 +01:00
  • 635002ce11 BloomFilter: javadoc updates Mike Hearn 2014-03-26 20:04:32 +01:00