Mike Hearn
30327cd888
Implement block work calculations, add a test. Small internal refactoring of BlockChain in preparation for bigger changes.
2011-03-22 14:50:00 +00:00
Mike Hearn
5e2e48eb5a
Add the start of unit tests covering chain splits/reorgs, along with supporting code. The tests don't pass yet so they are marked @Ignore.
2011-03-15 13:58:52 +00:00
Mike Hearn
a504328044
Improve VarInt: simplify, fix some minor bugs and increase test coverage.
2011-03-13 21:29:25 +00:00
Mike Hearn
29e60a460d
Add a getValueSentFromMe() to complement getValueSentToMe() and some unit tests.
...
BUG=2
2011-03-12 17:57:37 +00:00
Mike Hearn
4003eee3fe
Add getters/setters and a solve method to the Block object. Use this in a new proof of work unit test.
...
Introduce a unit test NetworkParameters that has very easy difficulty.
Correct some assertTrue(false) type checks to use fail() instead.
Make ALLOWED_TIME_DRIFT non-public until I have a good explanation in the javadocs of what it's for.
Simplify Block.equals
2011-03-08 15:23:06 +00:00
Mike Hearn
fbb93e4c27
Initial checkin of BitCoinJ
2011-03-07 10:17:10 +00:00