Commit Graph

363 Commits

Author SHA1 Message Date
Mike Hearn
debd034c71 Add a serialVersionUID to other classes that were missing them. Thanks to Andreas for the report.
BUG=4
2011-03-13 12:49:30 +00:00
Mike Hearn
7310e294f9 Add a serialVersionUID to TransactionOutPoint. Thanks to Andreas for the report.
BUG=4
2011-03-13 12:46:47 +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
99d155e0fe Control API logging using the bitcoinj.logging global property. 2011-03-08 17:48:03 +00:00
Mike Hearn
f97cde4c34 Seek past garbage before the message header starts. It's unclear how this occurs but is probably an issue in the
official implementation (which also does this seeking).
 
Print out some data from the ver message on connection.

Refuse to connect to nodes that don't provide the block chain.
2011-03-08 17:36:52 +00:00
Mike Hearn
617c31dd6f Remove some Java 6isms. 2011-03-08 15:33:52 +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
38bf9a8a80 Change how socket errors are handled in NetworkConnection and Peer. This allows for cleaner shutdown and simplifies
the code a bit.
 
Get rid of some unchecked conversion warnings to do with getblock futures.
2011-03-08 13:18:33 +00:00
Mike Hearn
66321804e7 Enable some simple checks of transaction ordering in the block verification. 2011-03-08 12:10:08 +00:00
Mike Hearn
fdde166813 Move the banner print in the PingService until after the blockchain. 2011-03-08 12:09:35 +00:00
Mike Hearn
c3f5496a8e Fix a typo in ECKey JavaDocs.
Remove the timestamp from the generated JavaDoc output to minimize subversion diffs in future.
Make the broadcastTransaction method of Peer package private. It's no longer needed to send coins.
2011-03-07 13:37:47 +00:00
Mike Hearn
fbb93e4c27 Initial checkin of BitCoinJ 2011-03-07 10:17:10 +00:00
Mike Hearn
d1036b101f Initial directory structure. 2011-03-04 21:36:40 +00:00