Commit Graph

  • 6491f3a048 Bump version to 0.4-SNAPSHOT, switch the subVer field to use genjixs BIP 14 format. Mike Hearn 2011-11-25 14:14:00 +00:00
  • 39ccbb595c Correct typo in the POM file. Mike Hearn 2011-11-25 14:04:10 +00:00
  • 8809872a32 Set version to 0.3 in the version message Mike Hearn 2011-11-25 14:03:55 +00:00
  • a2f0cb54a7 POM for 0.3 release Mike Hearn 2011-11-25 11:37:29 +00:00
  • 00cb8a4abd Make bitcoinSerialize() return a copy by default, provide an unsafeBitcoinSerialize() method for high performance applications that are willing to deal with the extra API complexity. Mike Hearn 2011-11-25 10:12:29 +00:00
  • 9549d345a7 Delete some dead code. Mike Hearn 2011-11-25 09:58:21 +00:00
  • 5561ffcb90 Remove SpeedTest as it's not generally useful to have in the test suite. Mike Hearn 2011-11-25 09:56:50 +00:00
  • 57077a71ae Minor comment reformatting, dead code elimination. Mike Hearn 2011-11-25 09:38:04 +00:00
  • 83354a34e6 Improve locking in PeerGroup. Do not use shutdownNow. Resolves issue 93 Miron Cuperman (devrandom) 2011-11-13 00:02:03 +00:00
  • 4b268872df Make decodeCompactBits public, resolves issue 99. Miron Cuperman (devrandom) 2011-11-12 23:32:17 +00:00
  • 3a463e4799 Cleanup of lazy block parsing, patch from shadders Miron Cuperman (devrandom) 2011-11-12 23:20:04 +00:00
  • dff3b2b45a Implement ReverseDwordBytes. Resolves issue 100 Miron Cuperman (devrandom) 2011-10-31 17:28:01 +00:00
  • a88bb0bc1c Notify even if nothing to download, resolves issue 90 Miron Cuperman (devrandom) 2011-10-28 18:46:43 +00:00
  • 415f8e611c Fix another Java-6ism Miron Cuperman (devrandom) 2011-10-27 17:51:34 +00:00
  • 65205b2655 Remove javadocs from repo, they are available at javadoc.bitcoinj.org instead. Mike Hearn 2011-10-26 12:16:12 +00:00
  • 794facc727 Dump out versions and chain heights in PrintPeers. Mike Hearn 2011-10-24 15:54:53 +00:00
  • 6cbe07c935 Fix a bug that could cause multiple peers to think they were download peers. It wasn't revealed by the unit tests because of how peers are added there vs when using discovery. That's now been changed so the tests are closer to reality. Mike Hearn 2011-10-24 15:54:25 +00:00
  • 5fceeb7794 Add units to the TCPNetworkConnection connectTimeout[Msec] parameter. Mike Hearn 2011-10-24 15:53:25 +00:00
  • 55273576cf Don't inform the API user of peer disconnects or select a new download peer when a PeerGroup is being terminated. Fixes issue 95. Mike Hearn 2011-10-24 12:44:26 +00:00
  • 7a834cad6e Fix another Java-6ism Miron Cuperman (devrandom) 2011-10-24 04:39:35 +00:00
  • 82070afd24 Fix PeerGroup.setMaxConnections for values less than 4. Resolve issue 97 Miron Cuperman (devrandom) 2011-10-24 02:24:03 +00:00
  • b7065f3f32 Remove stray line causing a compile error on Java 5 Miron Cuperman (devrandom) 2011-10-24 02:23:21 +00:00
  • 0cec27e5a7 Some changes to PeerGroup and how we manage the download process: - Have a dominant peer that is responsible for all data downloads. This eliminates the case of multiple threads fighting over download of the block chain and wasting time/bandwidth duplicating work. - Make NetworkConnection an interface with two implementations: {TCP,Mock}NetworkConnection - Rewrite the Peer/PeerGroup tests to use the mock connection. This simplifies testing of multiple independent peer threads within the same group. - Switch off the MOBILE_OPTIMIZED mode as it's no longer required. It may still be useful for the multiplexing proxy project. Mike Hearn 2011-10-21 13:13:33 +00:00
  • 0c5408e7c6 Reformat the file. Mike Hearn 2011-10-21 09:58:30 +00:00
  • d2e4284930 Improve the block locator we send to remote peers as a temporary hack for the lack of exponential thinning. Patch from Jan. Updates issue 84. Mike Hearn 2011-10-21 09:57:59 +00:00
  • 0bc87e5804 Fix bug in Utils.copyOf Miron Cuperman (devrandom) 2011-10-19 21:14:21 +00:00
  • cb4067da09 Remove dependency on Java 1.6 Miron Cuperman (devrandom) 2011-10-19 21:05:39 +00:00
  • a4a711e2df Fix serialization UIDs, other cleanup Miron Cuperman (devrandom) 2011-10-19 18:42:38 +00:00
  • 228f30f663 Fix length and parseLazy handling. Resolves issue 92 Miron Cuperman (devrandom) 2011-10-18 17:06:12 +00:00
  • 37a63265ef Disable assert in Message causing failing tests Miron Cuperman (devrandom) 2011-10-17 19:18:02 +00:00
  • fb5915e4c4 Reformat the codebase, this is pretty much whatever IntelliJ thinks the code should look like. Mike Hearn 2011-10-14 13:06:54 +00:00
  • 84f738763f Patch 11 from Steves lazy parsing patchset. Mike Hearn 2011-10-14 12:41:36 +00:00
  • f336a89984 Patch 10 from Steves lazy parsing patchset. Mike Hearn 2011-10-14 12:39:11 +00:00
  • ee083d6fac Patch 9 from Steves lazy parsing patchset. Mike Hearn 2011-10-14 12:37:27 +00:00
  • 27b6b5ab97 Patch 8 from Steves lazy parsing patchset. Mike Hearn 2011-10-14 12:33:47 +00:00
  • 8bf12acb2b Patch 7 from Steves lazy parsing patchset: Mike Hearn 2011-10-14 12:28:13 +00:00
  • 06ad3e5bb1 Patch 6 from Steves lazy parsing patchset: Mike Hearn 2011-10-14 12:27:16 +00:00
  • ab8227882d Patch 5 from Steves lazy parsing patchset: Mike Hearn 2011-10-14 12:25:05 +00:00
  • afef6bc029 Second part of Steves lazy parsing patchset: Mike Hearn 2011-10-11 17:24:50 +00:00
  • 34fea86708 First part of Steves changes in preparation for a high performance multiplexing proxy: Mike Hearn 2011-10-11 13:08:54 +00:00
  • ba2351f5aa Simplify EmptyMessage. Gets to patch 0 from Steve. Mike Hearn 2011-10-11 11:43:32 +00:00
  • 25e7456888 Add EmptyMessage class that was missing from previous commit. Mike Hearn 2011-10-10 09:44:45 +00:00
  • 619325e993 Some minor changes: - Introduce an EmptyMessage class. - Make Message.bitcoinSerialize() method final. Mike Hearn 2011-10-10 08:53:23 +00:00
  • 318afef956 Patch from Gary and Jonny to switch the Maven config to a new Nexus-based build server. Changes how SLF44J is imported to avoid forcing a particular implementation on the user. Remove redundant or unnecessary parts of the POM. Mike Hearn 2011-09-25 20:32:22 +00:00
  • 03647dbb7e Add a getTransactions() method that returns a set of all transactions, optionally including those which are dead and inactive. Add an argument for returning dead transactions in getRecentTransactions(). Updates issue 3. Mike Hearn 2011-09-18 21:08:39 +00:00
  • 5f2029e21b Introduce a mock clock, use it to improve the getRecentTransactions unit tests. Fix a seconds/milliseconds confusion pointed out by Andreas. Resolves issue 43. Mike Hearn 2011-09-18 20:54:23 +00:00
  • a3a4a927af Always pass the wallet into the event listeners on every event. Mike Hearn 2011-09-18 20:14:14 +00:00
  • bbe133be88 Make WalletEventListener an interface with a no-op implementation. Add an onChange() method to the default implementation that is called by the others, for cases where you don't care about what specifically changed, just that a change happened. Mike Hearn 2011-09-18 20:09:26 +00:00
  • 6f36e96f66 Fix the Wallet unit tests by allowing null blocks in Wallet.receive() again. Mike Hearn 2011-09-18 20:01:57 +00:00
  • 42b5a0d0ed Implement a couple of (weak) hashCode methods to go with equals(). Resolves issue 82. Mike Hearn 2011-09-18 19:54:03 +00:00
  • ba2255a185 Second part ... refresh timestamp when confirming a spend to the wallet. Mike Hearn 2011-09-18 19:46:25 +00:00
  • 3191d5684b Implement a way of getting a list of transactions in the wallet, ordered by recency. This doesn't yet support pending transactions, as those can't (yet) be added to the wallet. Mike Hearn 2011-09-18 19:40:04 +00:00
  • 2ef36efcce Add Steve to the AUTHORS file. Mike Hearn 2011-09-16 07:50:22 +00:00
  • 6963eb0ca9 Throw a ProtocolException instead of ClassCastException if connecting to a bad peer that does not send a version message on new connections. Resolves issue 81. Mike Hearn 2011-09-15 16:41:33 +00:00
  • 9009b83af5 Fix Message.readStr(). Implement a unit test and some equals() methods. Resolves issue 79. Mike Hearn 2011-09-15 16:38:32 +00:00
  • 99385e7aee Make a field static. Resolves comments by Miron on r194. Mike Hearn 2011-09-15 16:22:33 +00:00
  • 0315b3a5e6 Add a create method to Sha256Hash. Mike Hearn 2011-09-15 16:11:32 +00:00
  • 10b40cbb48 Split out parsing of header and payload. This is useful for high-performance programs that don't always need to parse the payload. Patch from shadders (CLA agreement pending). Mike Hearn 2011-09-15 15:03:15 +00:00
  • bf7b8f133c Fix a minor bug in OP_PUSHDATA2 (not used). Resolves issue 80. Mike Hearn 2011-09-15 15:02:13 +00:00
  • ea7741d3e0 Only do Bouncy Castle shading for a newly created Android-specific build. This should resolve issues with JAR signature check failures. Patch from Gary Rowe. Mike Hearn 2011-09-15 14:40:16 +00:00
  • 133dad7305 Tweak PeerGroup thread priority. Resolves issue 67. Mike Hearn 2011-09-10 09:56:34 +00:00
  • 24b87d8d6e Add a serialVersionUID to Sha256Hash. Resolves issue 77. Mike Hearn 2011-09-10 09:55:13 +00:00
  • 892dffd732 Update README. Mike Hearn 2011-09-10 09:53:41 +00:00
  • a22a0fd2bf Remove stray import. Gotta love IDEs. Resolves issue 78. Mike Hearn 2011-09-10 09:53:00 +00:00
  • 2ce328aa0b Use RandomAccessFile in DiskBlockStore to fix corruption. Resolves issue 76 Miron Cuperman (devrandom) 2011-09-06 20:40:15 +00:00
  • eae1130a31 Make PeerGroup remember discovery sources and retry them after a while. Mike Hearn 2011-09-05 17:09:30 +00:00
  • 6a049b633e Don't log stack traces for expected network problems. Clean up the logging a bit. Resolves issue 69. Mike Hearn 2011-09-05 13:20:48 +00:00
  • 9d5af32a9c When confirming a transaction as sent, move connected newly spent transactions from unspent->spent. Introduce a method to do this, so as to avoid duplication with updateForSpends(). Add a getPoolSize() method and use it in unit tests to verify the pools at various points. Resolves issue 72. Mike Hearn 2011-09-05 13:06:33 +00:00
  • 91fe7cdefb Use "d" mode not "s" mode, to avoid needlessly updating file metadata (we don't use it). Mike Hearn 2011-09-05 12:24:14 +00:00
  • c808ba89d2 Open files in sync mode. This forces use of fsync() at the right times, and may help resolve corruption issues observed on Android devices. Updates issue 66. Mike Hearn 2011-09-05 12:22:42 +00:00
  • f4e54046f0 Make some fields static/final as a memory optimization. Thanks to Andreas for his suggestions. Mike Hearn 2011-09-05 12:17:54 +00:00
  • 098671ffba Fix key array handling in importing/exporting private keys. Resolves issue 48. Miron Cuperman (devrandom) 2011-08-30 21:09:51 +00:00
  • 23b1325de7 Dependency copy mvn target for Eclipse users Miron Cuperman (devrandom) 2011-08-30 20:31:20 +00:00
  • f91978cc28 Support for importing/exporting private keys in sipa format. Resolves issue 48. Mike Hearn 2011-08-18 11:49:42 +00:00
  • c89d2aa124 Yet more PeerTest cleanup Miron Cuperman (devrandom) 2011-08-12 22:06:44 +00:00
  • e89fe1a4ea More PeerTest cleanup Miron Cuperman (devrandom) 2011-08-12 22:00:59 +00:00
  • bdfc72913c Clean up PeerTest Miron Cuperman (devrandom) 2011-08-12 19:34:06 +00:00
  • e0b11b071b Fix thinko that was causing test failure. Mike Hearn 2011-08-12 12:21:25 +00:00
  • dc20212fdc Unit tests for Peer Miron Cuperman (devrandom) 2011-08-11 22:10:54 +00:00
  • 381cda1ff2 Fixes for r165 code review Miron Cuperman (devrandom) 2011-08-10 17:32:59 +00:00
  • 0c8638ae2e Delete lib directory. Resolves issue 68. Mike Hearn 2011-08-10 15:57:34 +00:00
  • 1785f9bb1c Clear out the remaining non-security related FindBugs warnings. Mike Hearn 2011-08-05 21:00:25 +00:00
  • ddb1679a78 Make a couple of inner classes static for efficiency, clears some FindBugs warnings. Throw an exception if file delete in the block store failed, clears another warning. Mike Hearn 2011-08-05 20:46:23 +00:00
  • 48fce919aa Minor efficiency improvement: use entrySet() instead of keySet()+get(). Clears out a FindBugs warning. Mike Hearn 2011-08-05 20:39:12 +00:00
  • 58b18fa724 Delete the unused/incomplete Transaction.verifyInput method. Mike Hearn 2011-08-05 20:34:55 +00:00
  • 49d676160c Remove the built-in copy of Bouncy Castle. Instead, make it a dependency in the Maven POM. Also include the shade plugin so the final JARs won't cause conflicts on Android. Resolves issue 42. Patch by Jonny Heggheim. Mike Hearn 2011-08-05 20:25:00 +00:00
  • 67aa0ae4a3 Always close the FileOutputStream in Wallet.saveToFile(). Cleans up a FindBugs warning. Mike Hearn 2011-08-05 20:03:24 +00:00
  • 20adfd9965 Propagate BlockStoreException in BlockChain.setChainHead Mike Hearn 2011-08-05 15:49:21 +00:00
  • ec4b53a973 Lower priority for peer threads to avoid competing with UI threads. Resolves issue 67. Mike Hearn 2011-08-05 15:45:56 +00:00
  • 3498763d18 Delete some dead code in Script that was confusing people; BitCoinJ does not run scripts. Remove build.xml as we've switched to Maven. Mike Hearn 2011-08-05 14:37:48 +00:00
  • 78bdd09189 Log the block chain height to debug, not info. Mike Hearn 2011-08-05 14:26:29 +00:00
  • dd8208c135 Print date and time in DownloadListener. Mike Hearn 2011-08-05 14:17:18 +00:00
  • 2191a9979f Rename Block.getTime() to Block.getTimeSeconds() and note the metric used in the javadoc. Don't rethrow BlockStoreException as RuntimeException in BlockChain constructor. Updates issue 66. Mike Hearn 2011-08-05 14:10:57 +00:00
  • 4e097c1e80 Throw BlockStoreException if the chain head doesn't seem to be in the store. Update issue 66. Mike Hearn 2011-08-05 14:09:48 +00:00
  • 94f36ae8ec Remove a java6ism (IOError) Mike Hearn 2011-08-05 14:08:35 +00:00
  • 0b3c97239a Fix compile error. Mike Hearn 2011-08-05 14:06:54 +00:00
  • a598132514 Minor formatting change. Mike Hearn 2011-08-05 14:02:09 +00:00
  • dafb806f05 Don't mark outputs that spend to non-wallet addresses as spent. This avoids a problem in the case where you send somebody coins with change and they immediately send you the coins back. Add a unit test to prove the bug is solved. Existing wallets will need to be refreshed. Resolves issue 64. Mike Hearn 2011-08-05 12:36:05 +00:00
  • 3327e02f80 Do not callback if nothing to download from peer. Resolves issue 61 Miron Cuperman (devrandom) 2011-07-28 19:27:22 +00:00
  • dfad026523 Clean up exception handling in Peer/PeerGroup. Resolves issue 65 Miron Cuperman (devrandom) 2011-07-28 19:22:56 +00:00