Commit Graph

  • 1d674905e0 Introduce a chain state to block manager. Dave Collins 2014-03-20 00:10:44 -05:00
  • ee19fd79e4 Fix comment typo in addblock. Dave Collins 2014-03-20 00:37:35 -05:00
  • 9f1382f03c Use defaults in config struct for btcctl. Dave Collins 2014-03-19 23:41:01 -05:00
  • a94ca01cf4 add --testnet and --wallet options to btcctl. Closes #112 David Hill 2014-03-19 21:12:14 -04:00
  • e3f3918242 Use increment on p.retryCount to make golint happy. Dave Collins 2014-03-19 17:58:58 -05:00
  • ae89f7aa82 Expand btcctl RPC cert path to from config file. Dave Collins 2014-03-19 15:22:57 -05:00
  • 083f5e007c Correct the new addblock progress logging. Dave Collins 2014-03-19 15:11:30 -05:00
  • 0b73e14e79 Remove extraneous space and go fmt. Dave Collins 2014-03-19 09:47:49 -05:00
  • b12e2fc1db Issue #90: Improve addblock logging by reporting every 10 seconds instead of X number of blocks Jimmy Song 2014-03-18 20:23:27 -05:00
  • 3b9b11cb41 Update for recent btcutil.Address API change. Dave Collins 2014-03-18 20:44:03 -05:00
  • 8ec60d4678 Quick and dirty tests harnesses using some bitcoind test data. Owain G. Ainsworth 2014-03-14 16:38:18 +00:00
  • 5f6de02eb8 use bytes.Repeat instead of my perlscript generated lists of zeros. Owain G. Ainsworth 2014-03-19 00:42:39 +00:00
  • 1b1fef7369 Make removeOpcodeByData only search canonical pushes. Owain G. Ainsworth 2014-03-18 17:54:29 +00:00
  • 239e13c0a5 Add createencryptedwallet to wallet request set. Josh Rickmar 2014-03-18 10:52:43 -05:00
  • 675f967d4a Add createencryptedwallet support to btcctl. Josh Rickmar 2014-03-18 10:49:43 -05:00
  • ebf5a3e850 add peer to block and tx rejection debug messages. David Hill 2014-03-17 22:52:55 -04:00
  • 76339baf6c Make removeOpcodeByData in line with bitcoind behaviour. Owain G. Ainsworth 2014-03-17 17:43:40 +00:00
  • e5afb5e984 Improve error return from sendrawtransaction. Dave Collins 2014-03-17 17:33:56 -05:00
  • 7a885b3cf6 Reject orphan transactions from sendrawtransaction. Dave Collins 2014-03-17 17:32:30 -05:00
  • de670bd5b2 check for 0 length strings in pubkey parser. Owain G. Ainsworth 2014-03-17 17:47:27 +00:00
  • c570830104 Update README.md example to use leveldb. Dave Collins 2014-03-17 12:58:22 -05:00
  • dab2a7cb0f Don't possibly dereference bad signatures in OP_CHECKMULTISIG. Owain G. Ainsworth 2014-03-17 15:05:39 +00:00
  • c8332cc9a7 Correct num expected inputs calc for multisig. Dave Collins 2014-03-16 23:07:20 -05:00
  • a87e6fbdea Change rate limit debug messages to trace level. Dave Collins 2014-03-17 00:23:04 -05:00
  • 93140802ba Improve non-standard tx error message. Dave Collins 2014-03-17 00:17:16 -05:00
  • 24028ad37f Updated getinfo to return new RelayFee and use btcjson.InfoResult Francis Lam 2014-03-15 15:36:16 -04:00
  • 71e31f03a2 Update coverage report. John C. Vernaleo 2014-03-16 14:18:43 -04:00
  • 3c2a3e9f54 Update install command to also install utilities. Dave Collins 2014-03-15 22:32:45 -05:00
  • 96f9b88935 Export CalcPastMedianTime function. Dave Collins 2014-03-15 15:04:10 -05:00
  • 6dd7785276 Export coinbase script length limits. Dave Collins 2014-03-15 15:01:48 -05:00
  • 8f69a0bf69 Added new RelayFee field and missing TimeOffset field to InfoResult Francis Lam 2014-03-15 15:34:55 -04:00
  • 9375c8dc48 move data extraction fof OP_PUSHDATA into main function. Owain G. Ainsworth 2014-03-14 20:59:43 +00:00
  • 02ee7762e4 AddData([]byte{}) is valid and should push empty to the stack. Owain G. Ainsworth 2014-03-14 20:11:49 +00:00
  • 299dcc2fad PushDataN with a 0 length is valid, we were too tight here. Owain G. Ainsworth 2014-03-14 19:22:42 +00:00
  • 42f6576b02 Enforce max script length of 10000. Owain G. Ainsworth 2014-03-14 18:40:35 +00:00
  • dec16d7ff2 Enforce a combined max stack depth of 1000 after every opcode. Owain G. Ainsworth 2014-03-14 18:35:36 +00:00
  • d6d755e411 Always return reserved opcode for always-illegal ops. Owain G. Ainsworth 2014-03-14 18:35:13 +00:00
  • 8beb0dec54 Make opcode.Exec run a bunch of unconditional checks Owain G. Ainsworth 2014-03-14 18:27:01 +00:00
  • f80c3255a3 PopInt now guarantees that number will be 32 bit. Owain G. Ainsworth 2014-03-14 17:51:17 +00:00
  • c7d5102954 Alt stack should be purged between scripts. Owain G. Ainsworth 2014-03-14 17:22:57 +00:00
  • a5e7e9ebb6 Disabled opcodes are `fail if pc passes' not fail if execute. Owain G. Ainsworth 2014-03-14 17:20:51 +00:00
  • c1a6e47f38 Conditionals must not straddle two scripts. Owain G. Ainsworth 2014-03-14 14:52:22 +00:00
  • 8df0af32d6 Encountering OP_VERIF and OP_VERNOTIF in execution is always an error. Owain G. Ainsworth 2014-03-14 14:48:19 +00:00
  • 1bc63bfd5d recieve->receive jolan 2014-03-14 15:08:51 -05:00
  • 201d6651c9 Fix tests after IsForNet addition to btcutil.Address interface. Owain G. Ainsworth 2014-03-13 17:20:45 +00:00
  • 510a44bdd9 Fix some comment typos. Dave Collins 2014-03-13 08:45:41 -05:00
  • b661dd3693 Convert block manager block handler to pure FIFO. Dave Collins 2014-03-12 13:02:38 -05:00
  • f65ea832de Export a couple of peer-to-peer client errors. Dave Collins 2014-03-12 09:59:35 -05:00
  • 936b4eaa2d add unit testing for BigToCompact, CompactToBig, and CalcWork David Hill 2014-03-11 22:33:56 -04:00
  • 0e1f6a6628 Export MaxBlockHeaderPayload. Dave Collins 2014-03-11 20:22:32 -05:00
  • e5d15b0fa8 Export MaxVarIntPayload. Dave Collins 2014-03-11 20:09:55 -05:00
  • 1676ecd7a6 Export CheckConnectBlock function. Dave Collins 2014-03-11 13:18:27 -05:00
  • acdce27f9f Defer unlock of orphan mutex in addOrphanBlock. Dave Collins 2014-03-09 11:04:47 -05:00
  • 33af740985 Added missing notificationMsg types to notificationHandler Francis Lam 2014-03-04 21:36:48 -05:00
  • b452acdde2 remove link David Hill 2014-03-04 13:00:06 -05:00
  • 5549b99e19 mention IRC server David Hill 2014-03-04 12:58:59 -05:00
  • 27f3d916ec Do not block removing clients if notification manager quit. Josh Rickmar 2014-03-04 11:31:44 -05:00
  • a7d5b365b1 Retain order when processing client notifications. Josh Rickmar 2014-03-04 11:15:25 -05:00
  • aff33f1e3c Consistently use the peer stringer to print the peer address. Owain G. Ainsworth 2014-03-04 15:43:32 +00:00
  • 2a42cc134f Lower min transaction relay fee to 1000 satoshi. Dave Collins 2014-03-04 09:15:18 -06:00
  • b9c21bd518 Export VarIntSerializeSize function. Dave Collins 2014-03-03 18:43:09 -06:00
  • b041971ca8 Export CalcNextRequiredDifficutly function. Dave Collins 2014-03-02 12:17:36 -06:00
  • cbb5c5b424 recieve -> receive David Hill 2014-03-02 13:28:29 -05:00
  • b59a15d07e Export CountP2SHSigOps. Dave Collins 2014-03-01 21:50:11 -06:00
  • ec641751a8 Change BuildMerkleTreeStore to accept transactions. Dave Collins 2014-03-01 21:16:06 -06:00
  • d2bfd3d98b Alphabetize subsystem loggers. Dave Collins 2014-03-01 12:44:39 -06:00
  • 82edb203e5 Export MaxSigOpsPerBlock. Dave Collins 2014-02-28 12:23:50 -06:00
  • 87ecac2072 Export CountSigOps function. Dave Collins 2014-02-28 12:16:56 -06:00
  • 91e563edaa Add IP address to a few more peer error messages. Dave Collins 2014-02-28 10:59:21 -06:00
  • ce2f68a982 Fix typo on previous commit. Dave Collins 2014-02-28 10:55:00 -06:00
  • 29b790b9c8 Add IP address to peer error messages. Dave Collins 2014-02-28 10:46:39 -06:00
  • 178e60a66e Update sample conf regarding debuglevel subsystems. Dave Collins 2014-02-28 09:52:44 -06:00
  • f01459c30e Update for recent btcutil Addr interface changes. Dave Collins 2014-02-26 14:06:48 -06:00
  • 1623818c12 Export a new constant for MaxPrevOutIndex. Dave Collins 2014-02-25 16:00:03 -06:00
  • 8c7c1e84a3 Use mtx to control disconnect of websocket client. Dave Collins 2014-02-24 23:57:36 -06:00
  • a56dfc7ff4 Export CalcBlockSubsidy function. Dave Collins 2014-02-25 00:31:58 -06:00
  • bb4cba51cd Switch to new transaction notifications. Josh Rickmar 2014-02-17 13:45:06 -05:00
  • 0c6d7bbeae Improve websocket transaction notifications. Josh Rickmar 2014-02-24 09:10:59 -05:00
  • 1c052a01d8 Reject blocks with high precision timestamps. Dave Collins 2014-02-24 10:17:13 -06:00
  • 13e0b0e7b9 Limit generated timestamps to one second precision. Dave Collins 2014-02-24 09:53:31 -06:00
  • bfef4e4a31 Make regtest subsidy halving interval 150. Dave Collins 2014-02-23 14:25:15 -06:00
  • b25bf566b0 Rename findLatestKnownCheckpoint. Dave Collins 2014-02-21 15:03:44 -06:00
  • 50b6e10b57 Reject blocks that fork before previous checkpoint. Dave Collins 2014-02-21 13:02:59 -06:00
  • da1fcc6dbd Tighten the check for pay-to-pubkey scripts. Dave Collins 2014-02-21 02:11:11 -06:00
  • a3ccc25e5a Return errors for any sendrawtransaction rejection. Josh Rickmar 2014-02-21 09:03:04 -05:00
  • 982f282e10 Go fmt. Dave Collins 2014-02-21 02:09:55 -06:00
  • 88f3c73ad1 Add MultiSigScript to provide a canonical script for a multisig transaction. Owain G. Ainsworth 2014-02-21 00:20:24 +00:00
  • 40cdacde23 Prepare for release 0.7.0. BTCD_0_7_0_ALPHA Dave Collins 2014-02-20 15:51:40 -06:00
  • 2b0b512a83 Add support for pay to pubkey addresses to PayToAddrScript Owain G. Ainsworth 2014-02-20 18:37:42 +00:00
  • 5171cb803c Convert builder.Push* to builder.Add* we think this is clearer. Owain G. Ainsworth 2014-02-20 17:42:06 +00:00
  • 1566366346 convert internal script generation to use ScriptBuilder. Owain G. Ainsworth 2014-02-20 17:39:03 +00:00
  • cff7f9704b Fix a few comment typos. Dave Collins 2014-02-20 11:19:48 -06:00
  • 21b974e271 Fix missing ) in comment. John C. Vernaleo 2014-02-20 10:51:15 -05:00
  • 5a660e95f9 Add 100% test coverage for new ScriptBuilder code. Dave Collins 2014-02-20 02:47:52 -06:00
  • 50173b865b Allow push of 0 via new ScriptBuilder PushInt64. Dave Collins 2014-02-20 01:46:56 -06:00
  • 264c89099f Make non-canoncial data pushes non-standard. Dave Collins 2014-02-19 19:22:02 -06:00
  • 61d270957e Add HasCanonicalPushes David Hill 2014-02-20 00:05:35 -05:00
  • b8dc1b66e5 Add new ScriptBuilder for building custom scripts. Dave Collins 2014-02-19 20:58:21 -06:00
  • a6cdb8b844 Add tests for multisig with zero required sigs. Dave Collins 2014-02-19 16:52:11 -06:00
  • cb1f3cf48c Rate limit free-to-relay transactions. Owain G. Ainsworth 2014-02-19 18:15:47 +00:00