3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00
Commit Graph

180 Commits

Author SHA1 Message Date
Mike Hearn
bf7b8f133c Fix a minor bug in OP_PUSHDATA2 (not used). Resolves issue 80. 2011-09-15 15:02:13 +00:00
Mike Hearn
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. 2011-09-15 14:40:16 +00:00
Mike Hearn
133dad7305 Tweak PeerGroup thread priority. Resolves issue 67. 2011-09-10 09:56:34 +00:00
Mike Hearn
24b87d8d6e Add a serialVersionUID to Sha256Hash. Resolves issue 77. 2011-09-10 09:55:13 +00:00
Mike Hearn
892dffd732 Update README. 2011-09-10 09:53:41 +00:00
Mike Hearn
a22a0fd2bf Remove stray import. Gotta love IDEs. Resolves issue 78. 2011-09-10 09:53:00 +00:00
Miron Cuperman (devrandom)
2ce328aa0b Use RandomAccessFile in DiskBlockStore to fix corruption. Resolves issue 76 2011-09-06 20:40:15 +00:00
Mike Hearn
eae1130a31 Make PeerGroup remember discovery sources and retry them after a while. 2011-09-05 17:09:30 +00:00
Mike Hearn
6a049b633e Don't log stack traces for expected network problems. Clean up the logging a bit. Resolves issue 69. 2011-09-05 13:20:48 +00:00
Mike Hearn
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. 2011-09-05 13:06:33 +00:00
Mike Hearn
91fe7cdefb Use "d" mode not "s" mode, to avoid needlessly updating file metadata (we don't use it). 2011-09-05 12:24:14 +00:00
Mike Hearn
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. 2011-09-05 12:22:42 +00:00
Mike Hearn
f4e54046f0 Make some fields static/final as a memory optimization. Thanks to Andreas for his suggestions.
Fix a bug that affected Windows machines by always closing files on the exception propagation path.
2011-09-05 12:17:54 +00:00
Miron Cuperman (devrandom)
098671ffba Fix key array handling in importing/exporting private keys. Resolves issue 48. 2011-08-30 21:09:51 +00:00
Miron Cuperman (devrandom)
23b1325de7 Dependency copy mvn target for Eclipse users 2011-08-30 20:31:20 +00:00
Mike Hearn
f91978cc28 Support for importing/exporting private keys in sipa format. Resolves issue 48. 2011-08-18 11:49:42 +00:00
Miron Cuperman (devrandom)
c89d2aa124 Yet more PeerTest cleanup 2011-08-12 22:06:44 +00:00
Miron Cuperman (devrandom)
e89fe1a4ea More PeerTest cleanup 2011-08-12 22:00:59 +00:00
Miron Cuperman (devrandom)
bdfc72913c Clean up PeerTest 2011-08-12 19:34:06 +00:00
Mike Hearn
e0b11b071b Fix thinko that was causing test failure. 2011-08-12 12:21:25 +00:00
Miron Cuperman (devrandom)
dc20212fdc Unit tests for Peer 2011-08-11 22:10:54 +00:00
Miron Cuperman (devrandom)
381cda1ff2 Fixes for r165 code review 2011-08-10 17:32:59 +00:00
Mike Hearn
0c8638ae2e Delete lib directory. Resolves issue 68. 2011-08-10 15:57:34 +00:00
Mike Hearn
1785f9bb1c Clear out the remaining non-security related FindBugs warnings. 2011-08-05 21:00:25 +00:00
Mike Hearn
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.
2011-08-05 20:46:23 +00:00
Mike Hearn
48fce919aa Minor efficiency improvement: use entrySet() instead of keySet()+get(). Clears out a FindBugs warning. 2011-08-05 20:39:12 +00:00
Mike Hearn
58b18fa724 Delete the unused/incomplete Transaction.verifyInput method. 2011-08-05 20:34:55 +00:00
Mike Hearn
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. 2011-08-05 20:25:00 +00:00
Mike Hearn
67aa0ae4a3 Always close the FileOutputStream in Wallet.saveToFile(). Cleans up a FindBugs warning. 2011-08-05 20:03:24 +00:00
Mike Hearn
20adfd9965 Propagate BlockStoreException in BlockChain.setChainHead 2011-08-05 15:49:21 +00:00
Mike Hearn
ec4b53a973 Lower priority for peer threads to avoid competing with UI threads. Resolves issue 67. 2011-08-05 15:45:56 +00:00
Mike Hearn
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.
2011-08-05 14:37:48 +00:00
Mike Hearn
78bdd09189 Log the block chain height to debug, not info. 2011-08-05 14:26:29 +00:00
Mike Hearn
dd8208c135 Print date and time in DownloadListener. 2011-08-05 14:17:18 +00:00
Mike Hearn
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.
2011-08-05 14:10:57 +00:00
Mike Hearn
4e097c1e80 Throw BlockStoreException if the chain head doesn't seem to be in the store. Update issue 66. 2011-08-05 14:09:48 +00:00
Mike Hearn
94f36ae8ec Remove a java6ism (IOError) 2011-08-05 14:08:35 +00:00
Mike Hearn
0b3c97239a Fix compile error. 2011-08-05 14:06:54 +00:00
Mike Hearn
a598132514 Minor formatting change. 2011-08-05 14:02:09 +00:00
Mike Hearn
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. 2011-08-05 12:36:05 +00:00
Miron Cuperman (devrandom)
3327e02f80 Do not callback if nothing to download from peer. Resolves issue 61 2011-07-28 19:27:22 +00:00
Miron Cuperman (devrandom)
dfad026523 Clean up exception handling in Peer/PeerGroup. Resolves issue 65 2011-07-28 19:22:56 +00:00
Mike Hearn
0d085606df Fix a bogus comment in checkMerkleBranch(). 2011-07-26 20:22:21 +00:00
Miron Cuperman (devrandom)
be531960d6 PeerGroup connect/disconnect callback 2011-07-25 22:38:46 +00:00
Miron Cuperman (devrandom)
1cf1147c87 Ensure peer is disconnected in PeerGroup 2011-07-25 22:08:58 +00:00
Miron Cuperman (devrandom)
8469c8fd86 Fix PeerGroup.peers iterator synchronization 2011-07-25 20:06:51 +00:00
Miron Cuperman (devrandom)
652a394fc1 PeerGroup fixes for maxConnections and block timestamp 2011-07-25 19:51:22 +00:00
Miron Cuperman (devrandom)
7dd1fce5aa Clean up Peer exception handling 2011-07-20 22:10:14 +00:00
Miron Cuperman (devrandom)
0d4daee3c4 Java 5 compatibility - remove some @Override pragmas 2011-07-20 20:17:01 +00:00
Mike Hearn
18d45f0590 Update repo URLs. Patch from Gary Rowe. 2011-07-20 10:51:18 +00:00