bitcoinj/tests/com/google/bitcoin/core
Mike Hearn f336a89984 Patch 10 from Steves lazy parsing patchset.
Customize Sha256Hash.hashCode() method to only use first n bytes of the backing array.  This provides uniqueness to 256^n combinations.  As hashcode is not required to be guaranteed unique this fulfills the contract and reduces hashing time.

Use case is for applications that do a lot of mapping by Sha256Hash.  Each put and get require several hashcode operations.  Cached hashcode is already implemented in 8.patch.

Similar changes to this yielded huge performance benefits in poolserverj.

There is no point implementing a FastEquals version of equals given the bytes are essentially random and no byte is any more likely unique than another.
2011-10-14 12:39:11 +00:00
..
AddressTest.java 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
Base58Test.java Fix bug in Base58.decode that caused failures when the MSB of the decoded byte array was 1. Thanks to BitterTea and sipa for help with debugging this. 2011-05-24 20:19:18 +00:00
BitcoinSerializerTest.java Second part of Steves lazy parsing patchset: 2011-10-11 17:24:50 +00:00
BlockChainTest.java Rename Block.getTime() to Block.getTimeSeconds() and note the metric used in the javadoc. 2011-08-05 14:10:57 +00:00
BlockTest.java 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
ChainSplitTests.java Always pass the wallet into the event listeners on every event. 2011-09-18 20:14:14 +00:00
ECKeyTest.java Fix key array handling in importing/exporting private keys. Resolves issue 48. 2011-08-30 21:09:51 +00:00
LazyParseByteCacheTest.java Patch 5 from Steves lazy parsing patchset: 2011-10-14 12:25:05 +00:00
Manipulator.java Patch 7 from Steves lazy parsing patchset: 2011-10-14 12:28:13 +00:00
PeerAddressTest.java 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
PeerGroupTest.java Make PeerGroup remember discovery sources and retry them after a while. 2011-09-05 17:09:30 +00:00
PeerTest.java Yet more PeerTest cleanup 2011-08-12 22:06:44 +00:00
ScriptTest.java 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
SpeedTest.java Patch 10 from Steves lazy parsing patchset. 2011-10-14 12:39:11 +00:00
TestUtils.java Introduce a mock clock, use it to improve the getRecentTransactions unit tests. Fix a seconds/milliseconds confusion pointed out by Andreas. Resolves issue 43. 2011-09-18 20:54:23 +00:00
UtilsTest.java Allow formatting of negative BitCoin amounts, add a test for this. 2011-04-25 21:51:59 +00:00
VarIntTest.java Improve VarInt: simplify, fix some minor bugs and increase test coverage. 2011-03-13 21:29:25 +00:00
WalletTest.java Second part of Steves lazy parsing patchset: 2011-10-11 17:24:50 +00:00