Commit Graph

  • 2e924e217d WalletTool: fix typo Mike Hearn 2013-10-11 14:32:44 +02:00
  • a051afe224 Payment channels: default server should not attempt to destroy the [TCP] connection after sending a CLOSE, let the client do that. Mike Hearn 2013-10-10 14:23:57 +02:00
  • 4b48dbfda9 Payment channels: plumb through the actual amount of value sent on a channel, as it can sometimes be different to how much was requested. Mike Hearn 2013-10-09 18:15:04 +02:00
  • d6b4b55e83 Use earliest key time minus a week for setting fast catchup time and selecting a checkpoint. Mike Hearn 2013-10-08 11:49:53 +02:00
  • 1d4ff1770e Threading: resolve a race in the unit tests: if the user thread wasn't initialised, don't crash trying to test if we're on it. Mike Hearn 2013-10-08 11:47:06 +02:00
  • cb45e306df Script: clone tx before performing correctlySpends check. This prevents thread safety issues and corrupted transactions if validation fails. Mike Hearn 2013-10-07 18:09:38 +02:00
  • 4b5e8fcdb0 TransactionOutput: tighter checks on values when constructing (don't allow negative values, etc). Mike Hearn 2013-10-07 17:57:53 +02:00
  • bce6968aec TransactionInput: better toString Mike Hearn 2013-10-07 17:57:33 +02:00
  • 6625c9a2cb Use earliest key time minus a week for setting fast catchup time and selecting a checkpoint. Mike Hearn 2013-10-08 11:49:53 +02:00
  • 6c8a8aa691 Threading: resolve a race in the unit tests: if the user thread wasn't initialised, don't crash trying to test if we're on it. Mike Hearn 2013-10-08 11:47:06 +02:00
  • 8beb26c421 ScriptTest: more helpful errors. Mike Hearn 2013-10-07 18:09:47 +02:00
  • 1f7dd9495e Script: clone tx before performing correctlySpends check. This prevents thread safety issues and corrupted transactions if validation fails. Mike Hearn 2013-10-07 18:09:38 +02:00
  • 9953bbe5cb TransactionOutput: tighter checks on values when constructing (don't allow negative values, etc). Mike Hearn 2013-10-07 17:57:53 +02:00
  • b09c4cbe09 TransactionInput: better toString Mike Hearn 2013-10-07 17:57:33 +02:00
  • d0be53f0a1 HD wallets: Fix method names that refer to SHA256 instead of SHA512. Mike Hearn 2013-10-06 17:14:18 +02:00
  • 683c6170d5 EncryptedPrivateKey: Fix doc typo and remove redundant imports. Mike Hearn 2013-10-06 17:13:54 +02:00
  • 60ba7120db WalletAppKit: Allow setting of the user agent. Mike Hearn 2013-10-06 17:12:40 +02:00
  • 6342af0913 Payment channels: protocol tweak - when the client sends a CLOSE, the server sends a CLOSE back that contains the final negotiated contract, so it can be inserted into the wallet without needing to wait for a network broadcast (this is useful if the client does not have internet connectivity at that point). Mike Hearn 2013-10-04 17:10:42 +02:00
  • 511d6310d4 ECKey: don't crash when signing non-ASCII text Mike Hearn 2013-10-02 10:39:01 +02:00
  • 3f2c372097 Wallet: add a bit more logging to make output during chain splits less confusing. Mike Hearn 2013-09-23 17:03:18 +02:00
  • 01a55b557f Wallet: another re-org fix. Mike Hearn 2013-09-23 16:53:36 +02:00
  • bdada0447f Wallet: use a single hashmap to track all transactions, then use it in receive to re-canonicalize the transactions. Mike Hearn 2013-09-20 15:24:03 +02:00
  • 0d9f8b7867 Make MemoryBlockStore store only a rolling window of the last 5000 blocks. Fixes BuildCheckpoints which was trying to store every block header and running out of heap space. Mike Hearn 2013-09-15 18:09:20 +02:00
  • b883d88468 PeerGroup: correct logic for setting ver packet pre-filtering relay flag. Mike Hearn 2013-09-10 11:42:51 +02:00
  • e89cc1a41d Make RegTestParams use testnet addresses, to follow sipa's upstream change. Mike Hearn 2013-09-10 10:27:16 +02:00
  • 0e809b2b31 Wallet: comment for AllowUnconfirmedCoinSelector.get() Mike Hearn 2013-09-05 15:10:50 +02:00
  • a26b18c8fd Clarify PeerEventListener JavaDocs a bit Matt Corallo 2013-07-16 20:01:22 +02:00
  • 4d8e9088f2 Prepare 0.10.2-SNAPSHOT Andreas Schildbach 2013-10-02 23:45:26 +02:00
  • b9aa1e4d1e Payment channels: minor comment change and simplification. Mike Hearn 2013-10-02 14:22:54 +02:00
  • 14dae15150 ECKey: don't crash when signing non-ASCII text Mike Hearn 2013-10-02 10:39:01 +02:00
  • e6250e575f ScriptBuilder: Add a varargs utility Mike Hearn 2013-10-01 17:58:17 +02:00
  • bbe3441128 Fix a bad comment in TransactionSignature. Mike Hearn 2013-10-01 15:33:20 +02:00
  • 02416c97fa Payment channels: bug fixes and improved close behaviour. Mike Hearn 2013-09-30 14:33:30 +02:00
  • 38dadf4667 TransactionConfidence: use the new/standard event registration scheme to allow control of threading. Mike Hearn 2013-09-27 17:37:40 +02:00
  • 88abe3faa3 PeerGroup: fix usage of _ as identifier. Mike Hearn 2013-09-27 17:35:47 +02:00
  • ee206537d7 FullPrunedBlockChain: add a runScripts property, defaulting to true. Resolves issue 463. Mike Hearn 2013-09-30 14:11:33 +02:00
  • e3bcb49c4c Better use of annotations in Block Mike Hearn 2013-09-30 14:11:12 +02:00
  • e4a5c6bbc9 FullPrunedBlockChain: move a utility function for adding a signed input to Transaction. Mike Hearn 2013-09-30 11:25:47 +02:00
  • e0b50c374e FullPrunedBlockChain: fix a spelling error Mike Hearn 2013-09-30 10:55:28 +02:00
  • f0b258b40d Wallet: add a bit more logging to make output during chain splits less confusing. Mike Hearn 2013-09-23 17:03:18 +02:00
  • 059b896062 Wallet: another re-org fix. Mike Hearn 2013-09-23 16:53:36 +02:00
  • 60688752c9 Delete BoundedOverheadBlockStore. Mike Hearn 2013-09-20 18:04:34 +02:00
  • e67b3e540e Remove usage of some deprecated stuff. Mike Hearn 2013-09-20 18:03:30 +02:00
  • 51c10a3857 Upgrade SLF4J Mike Hearn 2013-09-20 17:53:26 +02:00
  • a59e9d4073 Wallet template: use Aqua style on MacOS. Mike Hearn 2013-09-22 15:01:40 +02:00
  • 6fa719df2a Wallet template: some improvements to crash handling. Mike Hearn 2013-09-22 14:45:05 +02:00
  • 896142504c Wallet template: nicer message if the app is already running. Mike Hearn 2013-09-21 22:08:17 +02:00
  • c587f2c442 WalletAppKit: we need a stupid hack to make checkpointing and payment channels work together. Mike Hearn 2013-09-21 21:03:36 +02:00
  • 324f603cbe Upgrade to protobuf 2.5 Mike Hearn 2013-09-21 20:08:43 +02:00
  • c861ecdf2a WalletAppKit: Fix stupid ordering bug I introduced that affects apps that use payment channels. Mike Hearn 2013-09-21 19:53:52 +02:00
  • 1f52b75ad9 Move AllowUnconfirmedCoinSelector out into wallet package. Mike Hearn 2013-09-20 17:38:41 +02:00
  • 628aba15f8 Add some unit tests for default coin selector that are more fine grained than what the WalletTest code provides. Mike Hearn 2013-09-20 17:36:01 +02:00
  • 2b4595c4f0 Wallet: Split DefaultCoinSelector out into a top level class in the wallet package. Mike Hearn 2013-09-20 16:50:25 +02:00
  • c366c5fa44 Wallet: Split CoinSelection out into a top level interface in the wallet package. Mike Hearn 2013-09-20 16:47:42 +02:00
  • c4405d3ee7 Wallet: Split CoinSelector out into a top level interface in the wallet package. Mike Hearn 2013-09-20 16:45:31 +02:00
  • efb6349a50 Wallet template: the appkit enables autosaving automatically, so it's unnecessary to repeat that. Mike Hearn 2013-09-20 15:32:40 +02:00
  • 7455135d3d Wallet: use a single hashmap to track all transactions, then use it in receive to re-canonicalize the transactions. Mike Hearn 2013-09-20 15:24:03 +02:00
  • ffb7c57d7f Make HDKeyDerivation.createMasterPrivKeyFromBytes public. Resolves issue 452. Mike Hearn 2013-09-18 14:38:37 +02:00
  • 90942041e7 Move TestUtils and TestWithWallet into the core package so they can be used by third party code in their unit tests. Mike Hearn 2013-09-18 12:21:07 +02:00
  • baeaa64201 Payment channels: more informative exception message if you forget to add the client wallet extension. Mike Hearn 2013-09-18 12:20:50 +02:00
  • 85554f511f Take wallettemplate out of the top level POM. Resolves issue 451. Mike Hearn 2013-09-17 17:44:20 +02:00
  • 9bc91ec2e5 Payment channels: Don't swallow ValueOutOfRangeException during initiate. Mike Hearn 2013-09-17 16:31:56 +02:00
  • d4786acb14 Move MockTransactionBroadcaster into utils so third party code can use it in its own tests. Mike Hearn 2013-09-17 12:37:58 +02:00
  • 8d839ae5ad Support creating spends without all the private keys. Mike Hearn 2013-09-16 15:46:23 +02:00
  • 81d76a76c3 Payment channels: more logging. Mike Hearn 2013-09-16 11:39:38 +02:00
  • 26f2d13581 Template app: move alert window controller to the right package. Mike Hearn 2013-09-16 11:38:43 +02:00
  • 4ef346112f Template app: better message if no wallet is installed. Mike Hearn 2013-09-16 11:38:15 +02:00
  • 01e7d63948 WalletAppKit: Finish the non-blocking startup code, oops. Mike Hearn 2013-09-16 11:37:05 +02:00
  • 6a84f55727 Add a demo wallet app that uses JavaFX and Java 8. Mike Hearn 2013-09-15 22:08:19 +02:00
  • 8daec2363b Ignore .iml files Mike Hearn 2013-09-15 22:05:17 +02:00
  • 2f5adfc3be Allow WalletAppKit to have a non blocking startup. Mike Hearn 2013-09-15 20:24:46 +02:00
  • 95f528a340 Add more features to WalletAppKit, and ensure wallets it creates always have at least one key. Mike Hearn 2013-09-15 18:10:15 +02:00
  • 2ccfd3fd48 Make MemoryBlockStore store only a rolling window of the last 5000 blocks. Fixes BuildCheckpoints which was trying to store every block header and running out of heap space. Mike Hearn 2013-09-15 18:09:20 +02:00
  • 3ea3735d4f Allow overriding of the default USER_THREAD executor so all events can be dispatched to a selected thread easily. Mike Hearn 2013-09-14 23:38:41 +02:00
  • 82037f8f96 PeerGroup: correct logic for setting ver packet pre-filtering relay flag. Mike Hearn 2013-09-10 11:42:51 +02:00
  • eaeab32400 Make RegTestParams use testnet addresses, to follow sipa's upstream change. Mike Hearn 2013-09-10 10:27:16 +02:00
  • 11ab82c91e Payment channels: fix unit test and add a log line. Mike Hearn 2013-09-05 15:17:15 +02:00
  • 24a5c05546 Payment channels: allow usage of unconfirmed coins for building a contract, as the risk is low (they're micropayments anyway). Mike Hearn 2013-09-05 15:16:58 +02:00
  • bf228cce34 Wallet: comment for AllowUnconfirmedCoinSelector.get() Mike Hearn 2013-09-05 15:10:50 +02:00
  • 38119b9355 Payment channels: Better comments and logging. Mike Hearn 2013-09-05 12:42:33 +02:00
  • 273acbdccd Payment channels: Take out unnecessary {} from log messages. Mike Hearn 2013-09-04 13:26:46 +02:00
  • 9bd52196ed Payment channels: Shrink the payment channel server example min required value to make it more micropaymenty. Mike Hearn 2013-09-04 13:26:28 +02:00
  • 1d454c03f3 Suppress annoying and useless warning. Mike Hearn 2013-09-03 14:24:18 +02:00
  • 1134572f61 Version 0.10.1 v0.10.1 Andreas Schildbach 2013-08-15 14:11:17 +02:00
  • d8f7eab42b Wallet: when "emptying" the wallet, only actually empty out the coins that would be considered selectable by the default coin selector. Mike Hearn 2013-08-15 12:31:54 +02:00
  • a3bbde87c6 Prepare 0.10.1-SNAPSHOT Andreas Schildbach 2013-08-15 13:53:42 +02:00
  • e05abe150b Wallet: when "emptying" the wallet, only actually empty out the coins that would be considered selectable by the default coin selector. Mike Hearn 2013-08-15 12:31:54 +02:00
  • cf23e18f23 MessageWriteTarget->interface, writeBytes throws IOException Matt Corallo 2013-07-16 20:05:20 +02:00
  • edd0a0907c Clarify PeerEventListener JavaDocs a bit Matt Corallo 2013-07-16 20:01:22 +02:00
  • 5ef59b9ae1 Unimplemented bitcoinSerializeToStream -> log error, not debug Matt Corallo 2013-07-16 17:10:26 +02:00
  • 1a5348c534 Implement ListMessage.equals() Matt Corallo 2013-07-16 16:16:55 +02:00
  • 7011d68165 Implement some (de)serialization (so we can roundtrip msgs in test) Matt Corallo 2013-07-15 22:58:57 +02:00
  • a724bcada5 Mark receivePending(List<Tx> dependencies) @Nullable Matt Corallo 2013-07-11 14:20:23 +02:00
  • 98787909da Fix typo Matt Corallo 2013-07-11 12:28:16 +02:00
  • 8448296f5f Abstract out SelectionKey processing and logic from NioServer. Matt Corallo 2013-07-10 23:27:01 +02:00
  • 9980903572 Make Protobuf{Server,Client} more generic. Matt Corallo 2013-07-23 18:31:43 +02:00
  • 146a6dd37e Add payment channel server native event handler wrappers Matt Corallo 2013-08-06 13:07:01 +02:00
  • 7074d52fbb Add test-case for manually-added transactions that appear in blocks Matt Corallo 2013-07-30 18:18:14 +02:00
  • de9d5e95ab Add a tool to watch for broadcasts of rotation transactions. Mike Hearn 2013-08-13 14:08:30 +02:00
  • 3857b0ae05 Sync script test files with bitcoin upstream. Mike Hearn 2013-08-13 11:42:07 +02:00