Commit Graph

  • 651880405d Fix regtest params. Mike Hearn 2013-06-07 13:59:10 +02:00
  • 1288774ee4 Fix a generics warning. Mike Hearn 2013-06-05 16:58:58 +02:00
  • 50539ff6c2 Remove nonsensical comment: shuffling inputs does not grant extra privacy. Mike Hearn 2013-06-05 16:49:18 +02:00
  • 033e7e7aab Some minor clarity improvements to DefaultCoinSelector. Mike Hearn 2013-06-05 16:48:02 +02:00
  • 0bdba0318a Clear some static analysis warnings from the inspector - many assertions could be simplified and assertEquals is (expected, actual) not (actual, expected). Mike Hearn 2013-06-05 16:41:14 +02:00
  • 7daa54b12c Add a few more fee solver tests. Matt Corallo 2013-05-24 14:39:55 +02:00
  • c9c107afaf Make getBalance() significantly faster. Matt Corallo 2013-05-24 11:09:35 +02:00
  • 72f346c10f Add tests for user-specified inputs in SendRequests. Matt Corallo 2013-05-21 17:08:43 +02:00
  • 375e553bdc Add basic fee solver to Wallet.completeTx and extensive testing. Matt Corallo 2013-05-21 17:20:34 +02:00
  • 86046b7122 Add comments on dust output values and constants/util to calc them Matt Corallo 2013-05-17 14:42:44 +02:00
  • 4b1e45fae2 Make DefaultCoinSelector aware of priority, not just depth. Matt Corallo 2013-05-17 14:17:42 +02:00
  • 842b30e2ca Add basic support for existing inputs in Transaction.signInputs Matt Corallo 2013-05-21 17:19:35 +02:00
  • fd4845fa90 Add new data-driven test-case Matt Corallo 2013-06-02 20:49:34 +02:00
  • c6b3b82a66 Fix TxOut serialization (fixes SIGHASH_SINGLE hashing) Matt Corallo 2013-06-02 20:45:03 +02:00
  • 07baa230f3 Wallet: Check if tx is time-locked not just has a lock time Matt Corallo 2013-05-23 14:06:57 +02:00
  • e2fea77a3d Catch potential exception on invalid signatures Matt Corallo 2013-05-23 14:21:27 +02:00
  • fb912322ff Replace Block.fakeClock with Utils.mockClock Matt Corallo 2013-05-22 18:45:04 +02:00
  • 5369ca925a Add Transaction.clearIn/Outputs and make getIn/Outputs unmodifiable Matt Corallo 2013-05-21 16:09:48 +02:00
  • 5993f2dc6c Further global replace of NetworkParameters.* -> *.get() Matt Corallo 2013-05-22 23:50:50 +02:00
  • f4c3b6a49d Global search and replace to use the param-class specific instance getters and prodNet -> MainNetParams. Mike Hearn 2013-05-08 16:30:55 +02:00
  • 52586edb33 NetworkParameters: Refactor out into separate classes. Mike Hearn 2013-05-08 15:15:02 +02:00
  • f6f290cc05 NetworkParameters: hide more params behind a getter. Mike Hearn 2013-05-08 14:49:36 +02:00
  • 1f005d7b3d NetworkParameters: hide packet magic behind a getter. Mike Hearn 2013-05-08 14:45:13 +02:00
  • 8043bc335b NetworkParameters: hide port behind a getter. Mike Hearn 2013-05-08 14:44:33 +02:00
  • ec62bbdeab NetworkParameters: hide genesis block behind a getter. Mike Hearn 2013-05-08 14:43:35 +02:00
  • 619495875c Block: Make some things public that aren't going to change. Mike Hearn 2013-05-08 15:27:04 +02:00
  • 28292b45a5 Implement dumb Comparable in Sha256Hash. Matt Corallo 2013-05-22 14:03:47 +02:00
  • 6cdfad43a3 Make Tx.connect public by exposing enums + tweak DISCONNECT_ON_CONFLICT Matt Corallo 2013-05-22 13:49:00 +02:00
  • f7c09d74ea Introduce Transaction.hasLockTime() and use it where appropriate. Matt Corallo 2013-05-22 12:00:01 +02:00
  • 2bd9531da6 Add txout.setValue, public decodeFromOpN+appendByte new MultiSig. Matt Corallo 2013-05-15 21:58:08 +02:00
  • b840ddfcc8 Require bitcoind replies to a inv instead of just sending blocks. Matt Corallo 2013-05-22 21:48:51 +02:00
  • 60520ba17a Add new data-driven tests from the reference client Matt Corallo 2013-05-13 18:58:14 +02:00
  • fad5356bd9 Properly uncache scriptSig in TransactionInput.setScriptBytes Matt Corallo 2013-05-13 18:57:24 +02:00
  • 70685745c3 Fix a possible ArrayIndexOOBEx in Script processing (cleaner error). Matt Corallo 2013-05-13 18:55:58 +02:00
  • 304bc705b8 Fix script parsing bug and test for it (partially reverts 7837a54) Matt Corallo 2013-05-19 16:30:23 +02:00
  • e8ea5cea7c Re-enable port selection as pull-tester will need it Matt Corallo 2013-05-19 12:29:21 +02:00
  • a1c1a1117a Rename blocks in FullBlockTestGenerator to make new tests easier Matt Corallo 2013-05-18 23:19:16 +02:00
  • f9ebf56047 Test importing first 100K of blocks. Matt Corallo 2013-05-08 21:35:15 +02:00
  • 68e6228356 Handle duplicate chain.add calls significantly more effeciently. Matt Corallo 2013-05-18 03:22:13 +02:00
  • ecca1c6f47 Add new BlockImporter. Matt Corallo 2013-05-12 18:00:35 +02:00
  • 729f2f5312 Store blocks on disk during BitcoindComparisonTool to save memory. Matt Corallo 2013-04-25 13:37:54 -04:00
  • a131d08a58 Move BlockImporter to a util and make it an Iterator<Block> Matt Corallo 2013-04-25 13:33:35 -04:00
  • 1dadb33c28 Split expensive blocks into sigExpensive and largeReorg. Matt Corallo 2013-04-24 11:48:18 -04:00
  • d1e689e6c5 Delete bitcoind patch, it is now in bitcoin/contrib/ Matt Corallo 2013-04-22 16:53:36 -04:00
  • 9cbd824457 Create very large reorg test. Matt Corallo 2013-04-22 16:04:29 -04:00
  • 0390bc9371 Add height info to FullBlockTests, to verify the tests are correct. Matt Corallo 2013-04-22 16:03:40 -04:00
  • 9ddbcb88b9 Make txCounter work for larger values. Matt Corallo 2013-04-22 15:57:15 -04:00
  • 2e5ca9e72b Allow FullBlockTestGenerator to indicate maximum reorg depth. Matt Corallo 2013-04-22 13:42:35 -04:00
  • 0ada33d2b1 Provide more opacity into exceptions. Matt Corallo 2013-03-30 22:54:29 -04:00
  • 939337b2db Fix premature optimization in H2FullPrunedBlockStore (resets state) Matt Corallo 2013-03-29 16:08:03 -04:00
  • 59e096e2ea Add optional support native ECDSA (designed for sipa's impl). Matt Corallo 2013-03-25 01:04:00 -04:00
  • 70bffcd6f4 Move onPeerConnected to after VerAck. Matt Corallo 2013-03-21 18:46:08 -04:00
  • f1750679b6 Use non-deprecated asserts in AlertMessageTest. Found by IntelliJ inspections. Mike Hearn 2013-05-08 16:15:22 +02:00
  • 2830d48ac1 Simply a few assertions. Mike Hearn 2013-05-08 14:51:44 +02:00
  • 1463213f25 Use port 18444 for regtest mode. Mike Hearn 2013-05-08 14:30:15 +02:00
  • 9d5b3865f5 Wallet: remove an unused variable from reorganize(). Mike Hearn 2013-05-07 12:48:34 +02:00
  • e2291d2fb4 Wallet: remove the affectedUs check in reorganize(). It was buggy, and if it had worked it would have introduced other issues. We always need to process the entire reorg to keep the depth and workDone counters on transactions accurate. Mike Hearn 2013-05-07 12:00:50 +02:00
  • 4886a137bc TransactionConfidence: make accessors return zero rather than throw when pending, and add a method to get a depth future. Mike Hearn 2013-05-06 17:59:31 +02:00
  • bacc67f26f Peer: fix buggy log statement. Mike Hearn 2013-05-06 17:34:48 +02:00
  • 857da6bb29 AbstractBlockChain: add a helper method to create futures that complete when the chain reaches a particular height. Mike Hearn 2013-05-06 16:23:08 +02:00
  • 9a20c39b15 A few simplifications suggested by IntelliJ Mike Hearn 2013-05-06 16:21:32 +02:00
  • c64453f835 Wallet: change the extensions API. Mike Hearn 2013-05-06 15:40:36 +02:00
  • 3eb3dbcf89 Better output for unusual script types in Transaction. Mike Hearn 2013-05-06 13:53:39 +02:00
  • ee0b56180b WalletAppKit - block on shutdown. Mike Hearn 2013-05-06 13:53:15 +02:00
  • 82e056cab7 Rename Wallet.waitForBalance() to be Wallet.getBalanceFuture(). Mike Hearn 2013-05-06 12:00:39 +02:00
  • e8f1418865 Wallet: Add a Wallet.waitForBalance() method. Mike Hearn 2013-05-02 16:51:29 +02:00
  • dddf02d6a1 Script: Use Guava ImmutableMap for the opcodes. This is more memory efficient. They could also be lazy initialized later if we need to. Mike Hearn 2013-04-29 14:16:48 +02:00
  • 69537c0bf0 Script: some minor tweaks and use the ScriptOpCodes parsing in ScriptTest. Mike Hearn 2013-04-29 14:10:36 +02:00
  • 95b7b90d4a Update AUTHORS and remove duplicated list from the pom. Mike Hearn 2013-04-29 13:43:44 +02:00
  • 52cec7f6be Refactored the huge switch. Replaced it with a HashMap which contains OpCode -> String instead; less lines Implemented getOpCode method and added a HashMap which contains String -> OpCode for the lookup Alexander Lolis 2013-04-27 00:05:17 +03:00
  • aa883b48b1 Wallet: Rewrite re-org handling to be simpler and use less code. And hopefully fix some bugs along the way. Mike Hearn 2013-04-16 15:07:02 +02:00
  • 5ae00d4e20 Simplifications to the wallet code. Mike Hearn 2013-04-03 00:12:24 +01:00
  • 37290fe882 Transaction: Clear depth/work data when setting confidence type to pending. Mike Hearn 2013-04-17 16:48:13 +02:00
  • 83136a2b02 Transaction: Better toString() for coinbases Mike Hearn 2013-04-17 16:47:54 +02:00
  • d9c21d58c7 Make wallet.getChangeAddress() visible. Mike Hearn 2013-04-26 16:41:33 +02:00
  • ab7e8685b5 Fix a typo in ScriptOpCodes PUSHDATA2 string. Mike Hearn 2013-04-26 16:41:23 +02:00
  • 95e43566a6 Add a few more ECKey functions that accept wrapper objects. Mike Hearn 2013-04-26 16:41:03 +02:00
  • 8a63fbd075 ScriptBuilder: add a method that creates a multisig input script. Mike Hearn 2013-04-26 13:51:00 +02:00
  • d537c8017a Script: fix bug, OP_0/OP_FALSE is not invalid. Mike Hearn 2013-04-26 13:50:30 +02:00
  • 172f264ee2 Add a Transaction.hashTransactionForSignature prototype that accepts Script objects instead of byte arrays. This could all be cleaned up and made more consistent in future. Mike Hearn 2013-04-26 13:47:26 +02:00
  • 38b40a245a Help IntelliJ static analysis understand that nullity is impossible at that point in the code. Mike Hearn 2013-04-26 13:46:57 +02:00
  • d113cbfc66 Script: Introduce a builder class that makes it easier to assemble scripts without writing raw byte streams. Mike Hearn 2013-04-24 19:15:06 +02:00
  • 752e7006e5 Move ScriptTest. Mike Hearn 2013-04-24 18:23:20 +02:00
  • 2f790520f4 Move ScriptTest Mike Hearn 2013-04-24 18:08:11 +02:00
  • 7db7f89582 Move Script and ScriptOpCodes to a new script package. Mike Hearn 2013-04-23 18:51:08 +02:00
  • 775af907ae Widen the scoping on a few methods in preparation for moving the Script class. Mike Hearn 2013-04-23 17:57:16 +02:00
  • 7837a54bc0 Script: refactor in preparation for making it easier to manipulate and construct scripts using chunked form. Mike Hearn 2013-04-22 17:06:31 +02:00
  • 5ec4f43dee Expand Block.toString() to use StringBuilder. Mike Hearn 2013-04-22 17:05:55 +02:00
  • a0d2b36c9f Script: ScriptChunk -> Script.Chunk and make it public. Mike Hearn 2013-04-22 14:46:58 +02:00
  • 80285832f8 Script: Move opcodes out to a separate ScriptOpCodes class. Improve a couple of javadocs in Transaction. Mike Hearn 2013-04-22 14:44:34 +02:00
  • 44ead8b6a1 Script: couple of minor reformattings. Mike Hearn 2013-04-22 14:37:34 +02:00
  • e18b9d363e Script: add support for crafting multisig outputs and hide program behind Script.getProgram() Mike Hearn 2013-04-19 13:13:48 +02:00
  • f88bdc5fe3 Wallet: make keychain private and add a remove method. Mike Hearn 2013-04-22 13:45:38 +02:00
  • 5112a94955 WalletTool: remove redundant if test Mike Hearn 2013-04-22 13:36:12 +02:00
  • 1341529228 Script: refactor signature checking out into separate methods. Mike Hearn 2013-04-19 16:01:55 +02:00
  • c53a137ca7 Pull some code up from WalletTest into a superclass to make writing test cases that need wallets+stores easier. Mike Hearn 2013-04-19 13:55:14 +02:00
  • b5b984a741 BitcoindComparisonTool: minor fixes Mike Hearn 2013-04-03 00:12:06 +01:00
  • 82171f5b50 Deprecate the getFromAddress() getters and simplify the Script c'tor by removing superfluous parameters. Mike Hearn 2013-04-18 15:35:34 +02:00
  • 197f0824ae Use my DNS seed instead of Jeff's, as his is just a static list and the nodes often appear to be overloaded. Mike Hearn 2013-04-13 21:56:15 +02:00
  • 42b2cfa3f0 Don't unit test failed decryption message, that's annoying. Mike Hearn 2013-04-03 01:12:28 +01:00