Commits on Jun 10, 2011
  1. @micheal-swiggs

    update commit

    smellyBobby committed with micheal-swiggs May 31, 2011
  2. @micheal-swiggs

    Deleted docs folder.

    smellyBobby committed with micheal-swiggs May 30, 2011
  3. @micheal-swiggs

    end of day commit.

    smellyBobby committed with micheal-swiggs May 30, 2011
  4. @micheal-swiggs
  5. @micheal-swiggs

    Added tests for PNSeedPeers. Added hamcrest to libs and made some

    changes to build.xml. Still have not tested building and not ran junit
    tests.
    smellyBobby committed with micheal-swiggs May 30, 2011
  6. @micheal-swiggs

    Added PNSeedPeers, SinglePeerAddressDiscovery. Added method to

    NetworkParameters to encourage the use of proper get/set methods for
    objects. Still untested.
    smellyBobby committed with micheal-swiggs May 30, 2011
  7. @micheal-swiggs

    workaround for testing protected static method. Untested as of this

    commit.
    smellyBobby committed with micheal-swiggs May 30, 2011
  8. @micheal-swiggs
Commits on May 30, 2011
  1. Add BoundedOverheadBlockStore. This is suitable for usage on constrai…

    …ned devices like Android phones that cannot afford to store the chain headers in RAM.
    
    On a MacBook pro with this store, the chain can be downloaded at about 2000 blocks per second. Difficulty transitions are not optimized but take around 50 msec. On a Google Nexus S the chain can be downloaded (via wifi) at 200 blocks per second and difficulty traversals take 2 seconds. At this time the profiles on both devices are dominated by verification costs, not storage.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@89 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 30, 2011
  2. Don't create the log line for message dumping in NetworkConnection un…

    …less that level of debug logging is enabled. This was dominating the profiles on Android.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@88 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 30, 2011
  3. Add FileInputStream/FileOutputStream accepting versions of the wallet…

    … load/save methods. This makes things a bit easier on Android.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@87 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 30, 2011
Commits on May 24, 2011
  1. Fix a bug in Base58 decoding. Refactor how it is handled and introduc…

    …e a new DumpedPrivateKey class that can be used to load keys generated by the dumpprivkey RPC. Use a new VersionedChecksummedBytes class to share the code.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@86 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 24, 2011
  2. Fix bug in Base58.decode that caused failures when the MSB of the dec…

    …oded byte array was 1. Thanks to BitterTea and sipa for help with debugging this.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@85 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 24, 2011
  3. Add some error messages to the Address exceptions for easier debugging

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@84 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 24, 2011
Commits on May 23, 2011
  1. Minor refresh of the algorithm descriptions at the top of Wallet.java

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@83 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 23, 2011
  2. Improve unit tests to verify the arguments to the onDeadTransaction e…

    …vent. Fixed a bug revealed by this.
    
    Credit to miron@google.com for spotting the problem.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@82 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 23, 2011
  3. Add a unit test for the case where the block chain overrides a curren…

    …tly pending transaction. This is an edge case that should only occur when the user executes a Finney attack against somebody else.
    
     
     Fix the bug that Miron pointed out. Resolves comments on r76.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@81 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 23, 2011
  4. Delete typo.

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@80 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 23, 2011
Commits on May 19, 2011
  1. Add SLF4J to the unit test classpath. Fixes issue 21.

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@79 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 19, 2011
Commits on May 17, 2011
  1. Delete an unused method.

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@78 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 17, 2011
  2. Fix javadoc rule in ant. Refresh Javadocs.

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@77 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 17, 2011
  3. Another rewrite of the re-org handling:

    - Split the unit tests for this into a separate file
    - Add more tests for double spends, reversal of external spends and more edge cases
    - Handle the case where transactions should be resurrected after a re-org
    - Handle the case where transactions are overridden by double spends
    
    Should address [some of] the points Miron raised during his review. There are likely still bugs but it's a lot closer to correct than before.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@76 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 17, 2011
Commits on May 4, 2011
  1. Fix the ant build.xml file to include SLF4J

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@70 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 4, 2011
Commits on May 2, 2011
  1. Some small renamings in BlockChain. Log but don't throw in Transactio…

    …nOutput.isMine() if the script is unparseable. Suggestions from Miron.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@69 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
  2. Simplify the findSplit code, suggested by miron@google.com

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@68 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
  3. Switch to using SLF4J + the simple logger, allowing people to integra…

    …te BitCoinJ with whatever logging system they
    
    are already using.
    
    Resolves issue 16.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@67 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
  4. Add DNS based discovery. Patch from John Sample. Resolves issue 18.

    Rename IRCPeers to PrintPeers, add DNS, add timing measurements.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@66 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
  5. Allow user to provide NetworkConnection with a socket timeout. Resolv…

    …es issue 17. Patch from John Sample.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@65 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
  6. Implement support for IRC peer discovery. Patch contributed by John S…

    …ample.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@64 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
  7. Make Base58 throw on decode if the input is not valid base58, add test.

    Add a decodeChecked method that uses the last 4 bytes as a checksum, for IRC support.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@63 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed May 2, 2011
Commits on Apr 25, 2011
  1. Set mime types on new doc files

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@62 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed Apr 25, 2011
  2. Add some HTML files I missed in the last checkin.

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@61 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed Apr 25, 2011
  3. Refresh JavaDocs.

    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@60 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed Apr 25, 2011
  4. Second part of supporting block chain re-orgs. Wallet now organizes t…

    …ransactions into four pools: unspent, spent, pending and inactive. Transactions track which blocks they have appeared in. BlockChain provides the Wallet with both segments of chain and it then moves transactions between the pools as necessary.
    
    Activated the disabled tests in testForking, added a bunch more tests for this functionality.
    
    Added various utility methods and made small fixes as required.
    
    This changes the wallet format and invalidates existing wallets.
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@59 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed Apr 25, 2011
  5. Some small protocol fixes. Correct serialization of version and addre…

    …ss messages.
    
    Also require the height of the best chain to be specified when setting up a NetworkConnection. This API is getting too complicated and will be simplified soon. 
    
    For now these fixes resolve a bug whereby the peer would not send us new blocks discovered during a session (as it thought we already had them).
    
    git-svn-id: http://bitcoinj.googlecode.com/svn/trunk@58 a743e126-8abc-4207-e589-8f9b47be99bf
    hearn@google.com committed Apr 25, 2011