Commit Graph

  • efb54784c8 Log rejected blocks and transactions as info. Dave Collins 2013-10-04 13:35:28 -05:00
  • 223d146a10 Improve logging of rejected transactions. Dave Collins 2013-10-04 13:33:54 -05:00
  • 83ac359c51 Convert transaction pool errors to their own type. Dave Collins 2013-10-04 13:30:50 -05:00
  • 78b555fcf9 Improve logging of rejected blocks. Dave Collins 2013-10-04 13:13:16 -05:00
  • 5444d262b8 Fix for signrawtransaction. John C. Vernaleo 2013-08-12 16:01:01 -04:00
  • 9841403c58 Correct comment on fetchTxListMain. Dave Collins 2013-10-04 12:11:58 -05:00
  • e4d3f25991 Update imports for goleveldb to Conformal fork. Dave Collins 2013-10-04 11:40:41 -05:00
  • c3a17de326 Comment Connected function in peer. Dave Collins 2013-10-04 10:44:36 -05:00
  • 689c699bc5 Add a new findcheckpoint utility. Dave Collins 2013-10-04 10:12:24 -05:00
  • 905715e830 Update LICENSE to ISC on new utils. Dave Collins 2013-10-04 10:11:38 -05:00
  • fd4b63073f Go fmt new utils. Dave Collins 2013-10-04 10:09:15 -05:00
  • 96b92552b9 Can't use Connected() in Disconnect since it just set disconnected. Owain G. Ainsworth 2013-10-04 15:05:31 +01:00
  • 7659a134c9 Add new tool to rewind the database to a specific height or sha Dale Rahn 2013-08-20 12:11:59 -04:00
  • a10da1ed6c Update btcd for btcdb API change. Dale Rahn 2013-10-03 16:42:38 -04:00
  • 6ff9d152ca Update the sample config file. Dave Collins 2013-10-04 01:38:41 -05:00
  • 8364392037 Remove SeedPeer option as it's not implemented. Dave Collins 2013-10-04 00:46:03 -05:00
  • 1db523883e Add missing format specifier in mempool.go. Dave Collins 2013-10-04 00:38:33 -05:00
  • f983b0846e Add missing format specific in addrmanager. Dave Collins 2013-10-04 00:37:15 -05:00
  • 47c07ee5e1 Update a few comments. Dave Collins 2013-10-04 00:34:24 -05:00
  • 78e9b94d93 Implement transaction pool and relay. Dave Collins 2013-09-20 12:55:27 -05:00
  • 3678153ae4 Allow regtest tool to be treated as a sync peer. Dave Collins 2013-10-03 22:31:00 -05:00
  • cda0b10082 Introduce an API change for btcdb Dale Rahn 2013-10-03 15:21:45 -04:00
  • d58fb25d98 Update btcchain for btcdb API change. Dale Rahn 2013-10-03 16:43:36 -04:00
  • 182c4d9ee6 Remove peers from duplicate map *before* we restart sync. Owain G. Ainsworth 2013-10-03 17:59:34 +01:00
  • 6bb0b80bbb Ignore non-sync invs and don't relay invs if we are not yet caught up. Owain G. Ainsworth 2013-10-03 16:25:13 +01:00
  • 07d634c76a remove old API function. Dale Rahn 2013-10-03 10:15:13 -04:00
  • 78d4bfecd4 Remove obsolete API functions Dale Rahn 2013-10-02 18:29:37 -04:00
  • 6dbc61e960 Remove the noverify option. Dave Collins 2013-10-03 13:01:18 -05:00
  • 0c6b79afb0 Don't disconnect on unrequested blocks for regtest. Dave Collins 2013-10-03 11:21:41 -05:00
  • bd3a39ad4a Fix comment typo. Dave Collins 2013-10-03 11:10:26 -05:00
  • 2b56e7a397 Don't need the blockpeermutex anymore. Owain G. Ainsworth 2013-10-03 16:13:47 +01:00
  • b06aa1672a Initial implementation of IsCurrent func. Dave Collins 2013-09-23 08:20:54 -05:00
  • 9abf071308 increase default pagesize to 4096 on sqlite David Hill 2013-10-03 10:32:19 -04:00
  • c1b327c06a Make the signal handling concurrent safe. Dave Collins 2013-10-03 09:28:18 -05:00
  • 35c95f0a36 Handle case where no auth is sent to rpcserver. John C. Vernaleo 2013-10-03 08:12:18 -04:00
  • fd0679acdd Update notification for recent btcchain API change. Dave Collins 2013-10-02 21:21:52 -05:00
  • 667eaa1562 Move to a callback for notifications. Dave Collins 2013-10-02 21:16:38 -05:00
  • 29dfa22086 Introduce a Stringer on peers. Dave Collins 2013-10-02 20:05:10 -05:00
  • f1e2de4f0c Go fmt. Dave Collins 2013-10-02 19:44:07 -05:00
  • 52701d826d Add directionality back to remove peer log too. Dave Collins 2013-10-02 19:43:38 -05:00
  • 13a8a8e7e3 use directionString() instead of handrollong. Owain G. Ainsworth 2013-10-03 01:39:31 +01:00
  • 2dcd003722 Print if a peer is inbound or outbound. Owain G. Ainsworth 2013-10-03 01:21:30 +01:00
  • eb667fdf83 Remove races on chain. Owain G. Ainsworth 2013-10-03 00:50:36 +01:00
  • 8974e789f7 Convert the rest of the subsystems to use atomics for shutdown vars. Owain G. Ainsworth 2013-10-03 00:33:42 +01:00
  • 63f8993163 Delete testing operations from obsolete functions. Dale Rahn 2013-10-02 18:10:00 -04:00
  • f333cb4220 Remove a (largely harmless) race on p.conn Owain G. Ainsworth 2013-10-02 23:06:29 +01:00
  • 5c1340be8f make logging about peers rather quieter. Owain G. Ainsworth 2013-10-02 22:49:31 +01:00
  • 0cf8601169 add tests for RFC*, Local, Valid, and Routable. David Hill 2013-10-02 17:34:25 -04:00
  • 6f9aada482 RFC4193 is fc00::/7, not fc00::/15. Also fix two typos in RFC4843() and RFC6052 David Hill 2013-10-02 17:31:44 -04:00
  • 8d1db93c82 Remove unused interfaces. Dale Rahn 2013-10-02 16:12:02 -04:00
  • 71ea6700a2 Hold amgr lock in {load,save}Peers. Owain G. Ainsworth 2013-10-02 20:27:08 +01:00
  • 70f15f434f Return nil in GetAddress if no addresses present. Owain G. Ainsworth 2013-10-02 20:18:13 +01:00
  • ad12d10503 Remove unused wakeup timer in peerHandler. Dave Collins 2013-10-02 13:52:44 -05:00
  • e54fb96d80 Test tx lookup validity in CheckInputTransactions. Dave Collins 2013-10-02 10:26:44 -05:00
  • 7d24f31fbd lack of a peers.json isn't an error, don't log in that case. Owain G. Ainsworth 2013-10-02 15:25:43 +01:00
  • 4455e77dde Don't create additional outbound peers if any --connect are specified. Owain G. Ainsworth 2013-10-02 15:16:04 +01:00
  • 98109dbadd Fix shutdown hangs. Owain G. Ainsworth 2013-10-02 01:45:21 +01:00
  • 7eb1a5ce4e Disconnect misbehaving peers who send unsolicited blocks. Owain G. Ainsworth 2013-10-01 21:32:50 +01:00
  • 030c610211 Revert "Comment multi-peer connect while code is under dev." Owain G. Ainsworth 2013-09-17 20:01:22 +01:00
  • 65725189db Keep track of currently requested blocks per peer. Owain G. Ainsworth 2013-09-30 23:53:21 +01:00
  • ca7cb8c875 move the intiial chain cache generation into bm. Owain G. Ainsworth 2013-09-30 23:43:14 +01:00
  • 850420055f Bucketizing for addrmanager Owain G. Ainsworth 2013-09-17 17:24:15 +01:00
  • d9214030e0 Don't propagate inv messages to connecting peers. Owain G. Ainsworth 2013-09-17 23:39:49 +01:00
  • 989e7a9c48 Make error logging in peer.go unique. Owain G. Ainsworth 2013-09-17 23:39:22 +01:00
  • 73f08e72a2 Add basic http auth to rpc server. John C. Vernaleo 2013-10-01 16:43:45 -04:00
  • dc9618c9ab Add a Error() to the Error struct. John C. Vernaleo 2013-09-30 17:13:19 -04:00
  • a5f81fc545 Add PayToPubKeyHashScript and SignatureScript functions. Josh Rickmar 2013-09-10 11:39:29 -04:00
  • e748650cc8 Use uncapitalized error strings Josh Rickmar 2013-09-30 18:20:46 -04:00
  • 961636c764 Add functions to serialize an ecdsa public key. Josh Rickmar 2013-09-10 23:14:30 -04:00
  • b04b4c27ea Update the TODO section of README.md to latest. Dave Collins 2013-09-30 17:00:23 -05:00
  • 29ed09cc98 Add IsPushOnlyScript. Dave Collins 2013-09-26 20:34:25 -05:00
  • 5efc3ea23f Remove a couple of outdated comments. Dave Collins 2013-09-30 16:50:10 -05:00
  • baa4c36618 Export ValdiateTransactionScript function. Dave Collins 2013-09-30 16:47:37 -05:00
  • 3c7511a34b Export the CheckTransactionInputs function. Dave Collins 2013-09-30 16:44:01 -05:00
  • e576962cb3 Export the CheckTransactionSanity function. Dave Collins 2013-09-30 16:43:10 -05:00
  • 6695cd15bb Export the IsCoinbase function. Dave Collins 2013-09-30 16:41:51 -05:00
  • 4eb135618a Export the IsFinalizedTransaction function. Dave Collins 2013-09-30 16:40:07 -05:00
  • fc69776371 Expose a transaction store and related functions. Dave Collins 2013-09-30 16:21:35 -05:00
  • ea256aeb5a Update a few comments. Dave Collins 2013-09-29 15:26:03 -05:00
  • 9880cf4646 Improve chain notification handling. Dave Collins 2013-09-28 22:01:39 -05:00
  • f1cd96ceb5 Update a few comments. Dave Collins 2013-09-26 21:06:01 -05:00
  • b97db056c1 Move the inventory handling from peer into blockmanager. Owain G. Ainsworth 2013-09-27 01:41:02 +01:00
  • 790ba87979 reset retrycount upon successful connection Todd T. Fries 2013-09-26 16:52:05 -05:00
  • 1e77c8e554 update with knits from davec and an additional one from me Todd T. Fries 2013-09-26 16:45:10 -05:00
  • 568c0044a0 introduce a backoff behavior for peers that are not permitting connections with help from davec Todd T. Fries 2013-09-26 16:26:31 -05:00
  • e840c8314c catch up with api changes Marco Peereboom 2013-09-26 10:15:14 -05:00
  • 2f743b4821 Pre-allocate space for high use slices. Dave Collins 2013-09-25 20:20:53 -05:00
  • 0a3e7f682b Avoid the risk of leaking small amounts of memory. Owain G. Ainsworth 2013-09-26 01:53:11 +01:00
  • 3640f6d37c Version the leveldb (and keep compatibility with pre-versioned uncompressed databases. Dale Rahn 2013-09-25 16:18:35 -04:00
  • 0e98349c98 disable compression, don't use cache and limit open files Marco Peereboom 2013-09-17 10:38:56 -05:00
  • 5f971e10e6 Pre-allocate space for slices. Dave Collins 2013-09-25 13:57:01 -05:00
  • a63edcd2dc preallocate a few arrays. Owain G. Ainsworth 2013-09-25 17:38:20 +01:00
  • 87e976a732 Add comment explaining OP_RESERVED behaviour with push ops. Owain G. Ainsworth 2013-09-25 17:37:36 +01:00
  • 18b3e86179 FetchTxAllBySha needs to return err to the caller. ok drahn@ David Hill 2013-09-23 15:39:53 -04:00
  • a69647b94d Handle notifications from chain in own goroutine. Dave Collins 2013-09-21 09:57:47 -05:00
  • d1f1fe0752 Revert "Send notification in their own goroutine." Dave Collins 2013-09-21 09:23:26 -05:00
  • e7f808378e Make max payload for a transaction max block size. Dave Collins 2013-09-19 16:46:14 -05:00
  • 00b183a8b5 Remove unreachable statement. ok davec@ Dale Rahn 2013-09-19 15:09:18 -04:00
  • 9c8cd4dee1 Update sample config for recent go-flags fix. Dave Collins 2013-09-19 09:17:15 -05:00
  • 346ff6f9e2 Filter duplicate getblocks requests. Dave Collins 2013-09-18 13:33:54 -05:00