3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-11 17:55:53 +00:00

Commit Graph

  • 0d085606df Fix a bogus comment in checkMerkleBranch(). Mike Hearn 2011-07-26 20:22:21 +00:00
  • be531960d6 PeerGroup connect/disconnect callback Miron Cuperman (devrandom) 2011-07-25 22:38:46 +00:00
  • 1cf1147c87 Ensure peer is disconnected in PeerGroup Miron Cuperman (devrandom) 2011-07-25 22:08:58 +00:00
  • 8469c8fd86 Fix PeerGroup.peers iterator synchronization Miron Cuperman (devrandom) 2011-07-25 20:06:51 +00:00
  • 652a394fc1 PeerGroup fixes for maxConnections and block timestamp Miron Cuperman (devrandom) 2011-07-25 19:51:22 +00:00
  • 7dd1fce5aa Clean up Peer exception handling Miron Cuperman (devrandom) 2011-07-20 22:10:14 +00:00
  • 0d4daee3c4 Java 5 compatibility - remove some @Override pragmas Miron Cuperman (devrandom) 2011-07-20 20:17:01 +00:00
  • 18d45f0590 Update repo URLs. Patch from Gary Rowe. Mike Hearn 2011-07-20 10:51:18 +00:00
  • 89adfe62d3 Merge peergroup branch into trunk Miron Cuperman (devrandom) 2011-07-19 18:22:11 +00:00
  • b9aae06490 Default PeerGroup connections now 4 Miron Cuperman (devrandom) 2011-07-19 17:59:39 +00:00
  • 440b2d28ac Fix IrcDiscovery to not expect the IRC server to return the user list when joining the server automatically. This does not happen for all IRC server implementations. Rather the NAMES command should be sent to ensure that the user list is returned. It also fixes that the returned lines start with a colon that has to be removed before sending the line to the parseUserList method. Patch from Wolfgang Nagele. Resolves issue 50. Mike Hearn 2011-07-18 20:39:00 +00:00
  • c3933a7773 Make the unit tests more realistic and fix two bugs this revealed: 1) Receiving coins regressed after the last optimization. Resolves issue 49. 2) Reorg handling expected to be able to connect all inputs. Mike Hearn 2011-07-18 20:15:39 +00:00
  • f68edc80cc Fix bug in FetchBlock introduced by peergroup merge Miron Cuperman (devrandom) 2011-07-15 23:25:45 +00:00
  • 71931ccb76 Merge trunk into peerroup Miron Cuperman (devrandom) 2011-07-15 23:03:23 +00:00
  • 29d996b552 PeerGroup cleanup 2 Miron Cuperman (devrandom) 2011-07-15 22:59:15 +00:00
  • d7d52cadd2 PeerGroup cleanup Miron Cuperman (devrandom) 2011-07-14 20:13:11 +00:00
  • e990bcd181 Add distribution management section to Maven pom.xml. Patch from Gary Rowe. Update issue 13. Mike Hearn 2011-07-14 07:12:17 +00:00
  • 1a4e2e67d1 Quick hack to not crash when connected to a node that has less of the chain than we do. Real fix must wait for PeerGroup to land. Resolves issue 44. Mike Hearn 2011-07-13 20:52:08 +00:00
  • ea8cbd7465 Don't pre-calculate the hash in the Transaction parse code. Speeds up processing of large blocks with no relevant transactions. Mike Hearn 2011-07-10 17:38:18 +00:00
  • 53d5d7572b Delete unused setFakeHashForTesting method. Mike Hearn 2011-07-10 15:53:50 +00:00
  • 48535f9a9c Optimize chain download further by skipping merkle root verification unless there are transactions relevant to a wallet in the block. Refactor some code out of WalletTest into a new static TestUtils class. Mike Hearn 2011-07-10 15:52:06 +00:00
  • 8e84d71308 PeerGroup - fix copyright and text Miron Cuperman (devrandom) 2011-07-06 20:41:41 +00:00
  • 6053c9087c PeerGroup first draft - new files Miron Cuperman (devrandom) 2011-07-06 20:39:17 +00:00
  • cd2f4c655b PeerGroup first draft Miron Cuperman (devrandom) 2011-07-06 20:38:38 +00:00
  • 85caefbd4d Store 2050 blocks in the BoundedOverheadBlockStore memory cache. This eliminates the delay on difficulty transitions. We now regularly hit 500 blocks per second, ie, we are sender-constrained. Mike Hearn 2011-07-06 15:53:50 +00:00
  • af843bc424 Minor style fix Mike Hearn 2011-07-06 15:44:50 +00:00
  • 16f2fae0ce Replace reflection with an if ladder for deserialization, as reflection was dominating the profiles (60% of all time spent downloading the chain). Takes us from around 250-300 blocks per second to over 400. Mike Hearn 2011-07-06 15:44:20 +00:00
  • d654a33376 Clone cached hash in Block.cloneAsHeader(). Before this hash recalculation was about half the time spent inside BoundedOverheadBlockStore.put(), now it does not appear in the profiles. Mike Hearn 2011-07-06 15:30:08 +00:00
  • 5dbd6c638b Don't construct a debug message unless that channel is enabled. Takes serialize() out of the profiles. Mike Hearn 2011-07-06 15:25:15 +00:00
  • d37723afbf Optimize Block.cloneAsHeader() which was taking about 25% of the CPU during chain download on Android. The previous implementation was lazy (serialize and deserialize), the new implementation is much faster and not much more complex. Mike Hearn 2011-07-06 15:15:44 +00:00
  • ff52cfd86b Add a tool that prints out an arbitrary block given its hash. Mike Hearn 2011-07-06 13:43:46 +00:00
  • 10fef0b480 Add a constructor that allows wallet-less operation (now possible due to the previous patch to support multiple wallets). Mike Hearn 2011-07-06 13:42:31 +00:00
  • 062ad32851 Fix the getBlock() method to use the correct message type. Mike Hearn 2011-07-06 13:40:54 +00:00
  • 1f5922b2f4 Add a removeEventListener method. Idea from Andreas. Resolves issue 27. Mike Hearn 2011-07-06 12:44:18 +00:00
  • 2e2c941919 Support attaching multiple wallets to a single BlockChain. Patch from Jan Møller. Resolves issue 39. Mike Hearn 2011-07-06 12:36:19 +00:00
  • 2c74beb9f5 Fix a bug in Transaction.getValueSentFromMe() in which inputs connected to outputs that existed in the wallet but were not actually owned by us were counted. Resolves issue 36. Patch from Jan Møller. Mike Hearn 2011-07-06 12:12:18 +00:00
  • bcff039a62 Remove the test prefix from WalletTest methods. It's unnecessary with JUnit 4. Mike Hearn 2011-07-06 12:01:05 +00:00
  • 61488d88d6 Add dnsseed.bluematt.me to the DNS discovery list. Mike Hearn 2011-07-06 11:59:09 +00:00
  • 037d99770d Bump version number to 0.3-SNAPSHOT Mike Hearn 2011-07-06 11:48:24 +00:00
  • 54b44be316 Peer groups Miron Cuperman (devrandom) 2011-07-01 21:42:21 +00:00
  • 8d302120f8 Remove stray import. Mike Hearn 2011-07-01 09:22:39 +00:00
  • 3b8b0833c5 Use Sha256Hash more consistently, improve the class a bit. Mike Hearn 2011-06-30 20:33:41 +00:00
  • 46ccc7389d Fix a typo bug in IrcDiscoveryTest. Patch from Nathan Baulch. Resolves issue 33. Mike Hearn 2011-06-30 19:00:52 +00:00
  • cc70107e27 Move some classes into new packages. Mike Hearn 2011-06-29 17:45:18 +00:00
  • 675abc2974 Remove transactions from the dead pool when they become live, and from pending when they become dead. Addresses comments from Miron. Mike Hearn 2011-06-27 19:56:37 +00:00
  • ca84bea462 Refresh the TODO file Mike Hearn 2011-06-27 14:34:48 +00:00
  • c7affe156d Move javadocs to the maven directory, check in fresh set Mike Hearn 2011-06-27 14:29:17 +00:00
  • 653d544b53 Minor fixes. Mike Hearn 2011-06-27 14:18:47 +00:00
  • dca09950e7 Attempt to exclude Bouncy Castle from javadocs/coverage reports. Doesn't work for coverage for some reason. Mike Hearn 2011-06-27 14:17:11 +00:00
  • 7d007dc329 Update README to talk about Maven. Mike Hearn 2011-06-27 14:16:38 +00:00
  • 51c7bd7224 Checked in extra POM code. Patch by Gary Rowe. Mike Hearn 2011-06-27 13:08:59 +00:00
  • 5114e6ccec Don't output an info log for every block downloaded. Mike Hearn 2011-06-27 11:37:39 +00:00
  • 212faf078c Bugfix from Noa Resare. Resolves issue 29. Mike Hearn 2011-06-27 11:25:43 +00:00
  • 66e596a8eb De-Satoshize the buildMerkleTree function: - Clarify the terminology in the existing explanation. - Add an explanation of what the point of the structure is. - Note how non-power-of-two transaction list sizes are handled. - Rename variables to be more helpful than i,i2,j etc. - Add a more detailed explanation of each step of the algorithm. Mike Hearn 2011-06-24 16:18:06 +00:00
  • 65bb4a20f8 Fix PeerAddress serialization and add a test. Patch from Noa Resare. Fixes issue 29. Mike Hearn 2011-06-24 13:03:23 +00:00
  • d1385d50df Ignore duplicate adds of the chain head. Mike Hearn 2011-06-14 16:01:38 +00:00
  • ece79783ab Bit more debugging data in StoredBlock.toString() Mike Hearn 2011-06-14 16:00:00 +00:00
  • 61ec87d4b5 Refresh AUTHORS file. Mike Hearn 2011-06-14 13:58:53 +00:00
  • b5d04a36e1 Add a program that just loads a wallet, runs through the block chain, and then saves/prints out the resulting wallet at the end. Mike Hearn 2011-06-14 13:42:41 +00:00
  • 320933bb70 Add more info to the Wallet.toString() output. Mike Hearn 2011-06-14 13:41:11 +00:00
  • f6fd61a3a0 Add a SeedPeers class that contains a pre-compiled list of IP addresses taking part in the Bitcoin network for a long period of time, for use if IRC and DNS are unavailable. Based on a patch by Micheal Swiggs. Mike Hearn 2011-06-14 13:01:47 +00:00
  • 636a47b320 Mention testnet in a box in the PingService docs. Mike Hearn 2011-06-14 12:50:33 +00:00
  • 0953e79cb0 Improve the documentation for the PingService. Patch by Gary Rowe. Mike Hearn 2011-06-14 12:49:19 +00:00
  • 6a4d0e866f Fix an assertion in Wallet to use the correct type. Mike Hearn 2011-06-14 12:39:18 +00:00
  • a955187e04 Refactor the serialization logic: Mike Hearn 2011-06-13 10:27:15 +00:00
  • 3caa419aab Add maven support for bitcoinj. Xiaofeng Guo 2011-06-10 16:46:32 +00:00
  • 0e513c0c02 Add BoundedOverheadBlockStore. This is suitable for usage on constrained devices like Android phones that cannot afford to store the chain headers in RAM. Mike Hearn 2011-05-30 16:14:28 +00:00
  • 3edb242d5a Don't create the log line for message dumping in NetworkConnection unless that level of debug logging is enabled. This was dominating the profiles on Android. Mike Hearn 2011-05-30 15:53:34 +00:00
  • 74152c6e70 Add FileInputStream/FileOutputStream accepting versions of the wallet load/save methods. This makes things a bit easier on Android. Mike Hearn 2011-05-30 15:52:37 +00:00
  • 06c84c2c23 Fix a bug in Base58 decoding. Refactor how it is handled and introduce 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. Mike Hearn 2011-05-24 21:42:08 +00:00
  • ab7351ff78 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. Mike Hearn 2011-05-24 20:19:18 +00:00
  • 5a3d188d03 Add some error messages to the Address exceptions for easier debugging Mike Hearn 2011-05-24 20:12:10 +00:00
  • bef08ade88 Minor refresh of the algorithm descriptions at the top of Wallet.java Mike Hearn 2011-05-23 12:51:14 +00:00
  • bebc83f64c Improve unit tests to verify the arguments to the onDeadTransaction event. Fixed a bug revealed by this. Credit to miron@google.com for spotting the problem. Mike Hearn 2011-05-23 12:44:32 +00:00
  • cb5025b987 Add a unit test for the case where the block chain overrides a currently pending transaction. This is an edge case that should only occur when the user executes a Finney attack against somebody else. Mike Hearn 2011-05-23 12:13:25 +00:00
  • 846412aa00 Delete typo. Mike Hearn 2011-05-23 08:37:26 +00:00
  • fe8afb46f7 Add SLF4J to the unit test classpath. Fixes issue 21. Mike Hearn 2011-05-19 12:47:56 +00:00
  • 1fd8067322 Delete an unused method. Mike Hearn 2011-05-17 15:43:26 +00:00
  • 63e70998c7 Fix javadoc rule in ant. Refresh Javadocs. Mike Hearn 2011-05-17 15:31:46 +00:00
  • 32436ddc7f 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 Mike Hearn 2011-05-17 15:22:28 +00:00
  • eee6e03416 Fix the ant build.xml file to include SLF4J Mike Hearn 2011-05-04 11:57:50 +00:00
  • cd10099d3f Some small renamings in BlockChain. Log but don't throw in TransactionOutput.isMine() if the script is unparseable. Suggestions from Miron. Mike Hearn 2011-05-02 13:20:15 +00:00
  • 62302611f6 Simplify the findSplit code, suggested by miron@google.com Mike Hearn 2011-05-02 13:13:31 +00:00
  • 068dcba122 Switch to using SLF4J + the simple logger, allowing people to integrate BitCoinJ with whatever logging system they are already using. Mike Hearn 2011-05-02 12:35:10 +00:00
  • a32a612630 Add DNS based discovery. Patch from John Sample. Resolves issue 18. Rename IRCPeers to PrintPeers, add DNS, add timing measurements. Mike Hearn 2011-05-02 12:14:35 +00:00
  • 71604505ad Allow user to provide NetworkConnection with a socket timeout. Resolves issue 17. Patch from John Sample. Mike Hearn 2011-05-02 11:58:51 +00:00
  • e43ad1f754 Implement support for IRC peer discovery. Patch contributed by John Sample. Mike Hearn 2011-05-02 11:54:15 +00:00
  • 37cb9cb6e5 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. Mike Hearn 2011-05-02 11:44:14 +00:00
  • 3e267f1327 Set mime types on new doc files Mike Hearn 2011-04-25 22:07:30 +00:00
  • bdf7771fc1 Add some HTML files I missed in the last checkin. Mike Hearn 2011-04-25 22:05:18 +00:00
  • ccef45c6c9 Refresh JavaDocs. Mike Hearn 2011-04-25 22:01:15 +00:00
  • c20118d871 Second part of supporting block chain re-orgs. Wallet now organizes transactions 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. Mike Hearn 2011-04-25 21:56:16 +00:00
  • 86d7b15f8c Some small protocol fixes. Correct serialization of version and address messages. Mike Hearn 2011-04-25 21:52:33 +00:00
  • 84dcfecb5d Allow formatting of negative BitCoin amounts, add a test for this. Flush stderr/stdout when logging to try and keep them in sync. Whitespace fixes. Mike Hearn 2011-04-25 21:51:59 +00:00
  • 1e2f3ae3e2 Split the BlockChain.add method out into some smaller functions. Mike Hearn 2011-04-21 09:19:05 +00:00
  • 90c7ec80ff Replace for loop with an iterator to make the removal case clearer. Extend the unit test a bit. Mike Hearn 2011-04-21 06:07:43 +00:00
  • 7a4dfd1dc2 Test that you can sign with the roundtrip key and verify with the original key, and vice versa. See http://code.google.com/p/bitcoinj/source/detail?r=51 Mike Hearn 2011-04-21 05:48:27 +00:00
  • b792d40653 Use BufferedInputStream in DiskBlockStore. Fixes issue 14. Mike Hearn 2011-04-20 16:39:32 +00:00
  • aff7fda17d Add a function/some tests for string to nanocoin conversions and vice-versa, along with a TODO to clean this whole thing up. Patch from Thilo Planz. Mike Hearn 2011-04-20 15:47:41 +00:00
  • 062f87553a Implement ASN.1 key export. Patch from Thilo Planz. Mike Hearn 2011-03-31 20:38:33 +00:00