Commit Graph

  • 56d74d504a Another pass at the auto-save code. Resolves issue 246. Mike Hearn 2012-08-27 18:44:35 +02:00
  • 4e708ed4b0 Change AUTHORS file. Mike Hearn 2012-08-21 11:40:47 +02:00
  • 83bb66cc25 Serialize the broadcastBy set for each transaction. Resolves issue 237. Mike Hearn 2012-08-20 23:37:46 +02:00
  • fedfe9d0e6 Change the wallet to relay tx confidence events instead of generating them itself, which is a bit cleaner. Centralize state that needs to be rebuilt after a Java deserialization. Resolves issue 235. Mike Hearn 2012-08-20 17:39:46 +02:00
  • eff88810e2 Add Matt to the AUTHORS file Mike Hearn 2012-08-20 17:55:12 +02:00
  • e5c88cda8b Fix Utils.decodeMPI and add a Utils.encodeMPI Matt Corallo 2012-08-02 18:00:04 +02:00
  • 61ed962e63 Implement PUSHDATA4 in Script.parse Matt Corallo 2012-07-28 02:43:50 +02:00
  • a831374b72 Fix handling of improperly-encoded DER signatures to match OpenSSL Matt Corallo 2012-08-06 03:46:34 +02:00
  • dd89369538 Fix a bug in Script.parse to allow 0-length pushes. Matt Corallo 2012-08-01 20:58:52 +02:00
  • 60748ed72e Print any opcode in Script.toString, adding Script.getOpCodeName Matt Corallo 2012-07-28 01:40:17 +02:00
  • 8b07672922 Add all script OP constants from the reference client. Matt Corallo 2012-07-11 01:47:09 +02:00
  • 8cc41330e6 Delete the old confidence migration code that was used in the days of serialized wallets. It's no longer needed. Mike Hearn 2012-08-20 16:55:53 +02:00
  • 200ca96f49 Rewrite the class javadoc for Wallet and remove a dead autosave variable. Mike Hearn 2012-08-20 16:44:56 +02:00
  • 5abc124134 Remove redundant programCopy from Script. Matt Corallo 2012-07-26 13:14:56 +02:00
  • dc943b6e6d Remove unused multi-byte script support. Matt Corallo 2012-07-17 21:43:40 +02:00
  • 30db7cfd47 Use pong(+nonce) messages. Matt Corallo 2012-07-14 18:24:01 +02:00
  • 5f8ae00dd6 Use minimum values for SpendableCoinbaseDepth. Matt Corallo 2012-07-13 22:23:08 +02:00
  • 20d72d7de4 Use a ScriptChunk class in place of byte[] arrays. Matt Corallo 2012-07-13 20:49:51 +02:00
  • ca1466e628 Make isCoinBase() equivalent to the reference one. Matt Corallo 2012-07-11 02:39:57 +02:00
  • 2aaa601293 Use signed 64-bit values for TransactionOutput.value. Matt Corallo 2012-07-13 23:14:47 +02:00
  • 8cd9cc11a4 Make Script throw ScriptException instead of ArrayIndexOutOfBounds Matt Corallo 2012-07-14 03:17:27 +02:00
  • c5e62f16b0 Fix serialization of GetBlocksMessage Matt Corallo 2012-07-14 23:17:58 +02:00
  • 6f6a946967 Fix typo in comment in TransactionConfidence.java Matt Corallo 2012-07-09 22:22:21 +02:00
  • e2108d922d Close ByteArrayOutputStreams. Resolves issue 244. Mike Hearn 2012-08-20 16:12:49 +02:00
  • 6f6c5d6773 Add a toString overload on Wallet. Print private keys in WalletTool when available. Mike Hearn 2012-08-20 16:01:19 +02:00
  • 75e04174c4 Introduce a concept of "minimum peers for broadcast" to PeerGroup.broadcastTransaction. This can be used to make sending faster when you are bringing up the network in parallel. It defaults to half the max connections. The idea is to insulate you from slow remote peers somewhat. Mike Hearn 2012-08-20 16:00:55 +02:00
  • 8746dabcad Rewrite wallet auto-saving to not require polling. Resolves bug 242. Mike Hearn 2012-08-20 14:37:47 +02:00
  • 9f036bff84 Mark as spent the outputs used by pending transactions. Resolves issue 243. Mike Hearn 2012-08-20 14:42:16 +02:00
  • c4304fe07d Bring back PeerGroupThreadFactory Miron Cuperman 2012-08-03 16:49:45 -07:00
  • 3560d18ea2 Don't increment maxConnections when using connectTo from the PeerGroup thread. Resolves issue 234. Mike Hearn 2012-07-23 16:42:21 +02:00
  • bc3fbb1448 Make the added logging more compact. Mike Hearn 2012-07-23 16:37:14 +02:00
  • 912760830a Add some more logging to the Peer class. Mike Hearn 2012-07-23 14:50:13 +02:00
  • abc9f09db3 Ensure peer.eventListeners is always accessed under the peer lock, and switch to EventListenerInvoker in most places so listeners can remove themselves. Mike Hearn 2012-07-22 02:00:15 +02:00
  • 915a878a13 Also inform the wallet in the single peer case in broadcastTransaction. Mike Hearn 2012-07-22 01:50:09 +02:00
  • 5bae8ffe6c Make PeerGroup.maxConnections fully synchronized. Mike Hearn 2012-07-22 01:22:56 +02:00
  • fd9eba1697 Change PeerGroup.broadcastTransaction() to wait for propagation. Mike Hearn 2012-07-21 23:07:00 +02:00
  • 42152c2483 Fix a bug in EventListenerInvoker that would crash if the last event listener removed itself. Mike Hearn 2012-07-22 00:45:06 +02:00
  • c5caeaea74 Duplicate channel futures list before closing channels. Mike Hearn 2012-07-21 23:02:07 +02:00
  • bc47fccaeb Add an auto save function. A background thread will atomically auto-save to a file when there are wallet changes at a limited rate. Mike Hearn 2012-07-14 18:03:58 +02:00
  • d20c185253 Re-order DNS seeds to match upstream. Pieters node comes first as it's the best maintained, Jeffs last as it's just a static list. Mike Hearn 2012-07-21 17:29:18 +02:00
  • ba65e7ccf3 Delete dead code from PeerGroup that was obsoleted by the move to Netty. Mike Hearn 2012-07-15 15:07:57 +02:00
  • c6d900e91c Correct stale comment in bitcoin.proto Mike Hearn 2012-07-14 14:00:18 +02:00
  • 00ce3d7523 Fix incorrect synchronization on map values. Miron Cuperman 2012-07-18 12:16:29 -07:00
  • 0a9f529f72 Clean up Peer callback API. Miron Cuperman 2012-07-18 11:44:55 -07:00
  • 4d58ea5111 Missing synchronization for iterations. Miron Cuperman 2012-07-18 10:48:07 -07:00
  • 831f2d582f Support the invalid QRcodes generated by blockchain.info (Ben Reeves software). They put bitcoin:// at the front instead of bitcoin:, apparently because otherwise some social networks won't recognize them. Mike Hearn 2012-07-14 13:23:00 +02:00
  • ad2c339d85 Fix two false-positives in test cases. Matt Corallo 2012-07-10 00:50:00 +02:00
  • 9d46c48db9 Fix Sha256Hash hashcode function. Mike Hearn 2012-07-09 22:28:29 +02:00
  • ec096993e6 Test and fix transactions in multiple chains going the other way (appears in side chain first, then best) Mike Hearn 2012-07-09 22:02:55 +02:00
  • 038438b394 Fix a bug that could cause inconsistent wallets. Mike Hearn 2012-07-09 21:36:38 +02:00
  • 26912547ce Fix minor bug in wallet-tool wrapper script (it sucks anyway) Mike Hearn 2012-07-05 16:01:44 +02:00
  • ac3fc068d0 Correct a comment, a few logging statements. Mike Hearn 2012-07-05 16:01:31 +02:00
  • 4bf8252041 Print a trailing newline in coinbase transaction toString method. Mike Hearn 2012-07-05 16:01:14 +02:00
  • 4d1e6259a7 coinbase phase 3 - coinbase death and resurrection now working (updated with Mike's comments) Mike Hearn 2012-05-30 13:58:11 +02:00
  • 6a2139f681 BitCoin -> Bitcoin. Add a Peer c'tor that lets you specify useragent instead of a full VersionMessage. Mike Hearn 2012-07-04 17:54:13 +02:00
  • f018e2956e Fix a class casting bug that isn't picked up by the unit tests as they don't use a real socket. Due to the move to embedded handlers during code review. Mike Hearn 2012-07-04 17:38:28 +02:00
  • 567fccbf8a Fix indentation in core/pom, clear a couple of findbugs warnings that were introduced with the last commit. Mike Hearn 2012-07-04 17:24:15 +02:00
  • fa10523007 Netty network stack. Miron Cuperman 2012-04-01 18:37:21 -07:00
  • 2d8f25a2da Bump locator size to 100 to match coinbase maturity. Add a few more comments to address Mirons review comments for chain download fixes. Mike Hearn 2012-06-14 13:42:06 +02:00
  • c5d0573107 Another attempt to fix Windows. Resolves issue 200. Mike Hearn 2012-06-10 15:00:36 +02:00
  • 8648e02f52 Throw away messages until version negotiation is complete rather than throwing an exception. There's a bug in Satoshis code (bug 1436) that can cause alerts to be relayed before nego finishes. Mike Hearn 2012-06-09 23:58:42 +02:00
  • f55219a603 Extra log line Mike Hearn 2012-06-09 23:57:51 +02:00
  • 7d1c982c9a Make AlertMessage toString contain the actual alert message. Mike Hearn 2012-06-09 23:57:41 +02:00
  • 96e27cfe27 Renamed TransactionConfidence.OVERRIDDEN_BY_DOUBLE_SPEND to DEAD Jim Burton 2012-06-07 15:06:03 +01:00
  • 643088145e Clear out some FindBugs warnings. Mike Hearn 2012-06-08 17:53:50 +02:00
  • 893013b415 Remove a couple of redundant Maven <version> tags. Mike Hearn 2012-06-08 17:21:38 +02:00
  • 4e4abf8a54 Delete the wallet file before renaming its replacement on Windows. Resolves issue 200. Mike Hearn 2012-06-08 17:10:35 +02:00
  • e0ca3f4a7e Ignore Eclipse project files. Resolves issue 203. Mike Hearn 2012-06-08 16:31:10 +02:00
  • 6fec1263ff Add a RAW_DUMP command to wallet tool. Mike Hearn 2012-06-08 16:30:23 +02:00
  • 335863c75d Add some helpers for creating pubkey-only outputs. Allow spending of pubkey outputs. There are unit tests but not manually tested yet. Implement toString() logic for printing pubkey inputs/outputs. Don't consider coinbase transactions relevant until Jims work is in. Support sending to pubkeys in wallet-tool Mike Hearn 2012-05-30 13:58:11 +02:00
  • dffe7f1348 Horrible hack to ensure WalletTool sends transactions. For some reason the socket gets torn down before it had a chance to write the packets out to the network. Mike Hearn 2012-06-07 10:55:15 +02:00
  • e863d01545 Fix receiving of pending transactions, it was broken after the memory pool changes in the case when a tx was received first on a non download peer. Mike Hearn 2012-06-05 14:17:31 +02:00
  • da8dba8b23 Re-write block chain download handling to avoid parallel chain downloads occurring. Avoids big slowdowns when a block is solved during the chain download. Resolves issue 180. Mike Hearn 2012-06-05 12:26:41 +02:00
  • 02db1509a3 A quick hack for wallet-tool until I learn Maven better. Mike Hearn 2012-06-03 15:49:38 +02:00
  • 216b5a4d65 Remove a useless <excludes> section. Mike Hearn 2012-06-03 15:49:21 +02:00
  • 0a689f9add Add some debug logging to Peer. Updates issue 199. Mike Hearn 2012-06-03 15:34:54 +02:00
  • 6ade5c38cc Update wallet tx confidence data for blocks that do not contain any relevant transactions. Resolves issue 197. Mike Hearn 2012-06-03 15:31:21 +02:00
  • cd5431b310 Print more information in Transaction/Wallet toString outputs to reflect last seen block hash and confidence/depth data. Mike Hearn 2012-06-03 14:20:42 +02:00
  • 5deecef64c Update a TestUtils helper to allow solved blocks to have transactions in them. Rewrite lastSeenBlockHash test to use it and eliminate a todo. Mike Hearn 2012-06-03 14:20:02 +02:00
  • 417dcefa67 Close the FileInputStream created in Wallet.loadFromFile(). Resolves issue 198. Mike Hearn 2012-06-03 11:35:22 +02:00
  • 80f141cbf5 TransactionConfidence changes (coinbase phase 2) + Mike's feedback Jim Burton 2012-05-21 15:18:49 +01:00
  • d1c2dfecbe Add fireduck to the AUTHORS file. Mike Hearn 2012-06-01 15:36:57 +02:00
  • 61fba05d3d Makes Wallet easy to extend. Fireduck 2012-05-04 22:57:21 -07:00
  • db67db5943 Take the directory of the wallets absolute path name, to avoid creating temporary wallets in the system default directory. This does not play well with NFS. Mike Hearn 2012-05-31 12:42:02 +02:00
  • fa746716ce Another README fix Mike Hearn 2012-05-31 11:08:27 +02:00
  • 8dfa21099c Fix PingService reference in the README file. Mike Hearn 2012-05-31 10:26:07 +02:00
  • 73e640e3b3 Take out a bogus assert that did not do what I thought it did. Mike Hearn 2012-05-30 16:17:45 +02:00
  • d9c2aabf66 Note about running time in BlockStore.getChainHead(). Resolves issue 191. Mike Hearn 2012-05-30 00:15:06 +02:00
  • 1f96f850e0 Automatically set up fast catchup time on a PeerGroup when wallets are added. Resolves issue 183. Mike Hearn 2012-05-25 16:05:02 +02:00
  • adb46c7dcb Make isAvailableForSpending and markAsUnspent public. Add JavaDocs for them. Resolves issue 193. Mike Hearn 2012-05-29 23:58:31 +02:00
  • 7705bd59a4 Version 0.6-SNAPSHOT Mike Hearn 2012-05-21 16:22:26 +02:00
  • e375270d6b Remove deduplication code. It is dead for a long time now already. Mike Hearn 2012-05-21 16:10:28 +02:00
  • e42063806c Write+rename wallet files. Mike Hearn 2012-05-21 15:31:21 +02:00
  • 08f5630cf9 Update ToyWallet to spongycastle. Mike Hearn 2012-05-18 17:22:47 +02:00
  • 0739a6f674 Port to the latest BouncyCastle API and switch to the SpongyCastle lightweight API. It has the following benefits: Mike Hearn 2012-05-18 17:03:55 +02:00
  • 6c31abd698 coinbase-tx phase1 complete (add blockheight to wallet and protobuf) Jim Burton 2012-04-03 18:43:46 +01:00
  • 23a960e0f4 Fix a bug revealed by the better wallet consistency checks - after reprocessing an unincluded transaction at the end of a re-org, check if connected transactions now need to be moved to the spent pool. Mike Hearn 2012-05-15 23:45:16 +02:00
  • 2081c2234b Ignore blocks that are sent to us which we never requested. Updates issue 180. Mike Hearn 2012-05-15 22:39:20 +02:00
  • 1b1457449a Add a BitcoinURI.convertToURI variant that takes a String instead of an Address. Remove test for null param -> IllegalArgumentException as that's not consistent with the rest of the library. Resolves issue 152. Mike Hearn 2012-05-14 20:57:14 -07:00
  • 3d5a7ea7ec Don't use peers that claim to have a block chain and then report a height of zero. These are probably buggy reimplementations of the protocol. Mike Hearn 2012-05-14 20:52:06 -07:00