Commit Graph

217 Commits

Author SHA1 Message Date
Ethan Buchman 2af32d6665 changelog and version bump 2017-12-11 15:05:56 -05:00
Ethan Buchman 5c58db3bb4 changelog [ci skip] 2017-12-11 14:49:34 -05:00
Ethan Buchman e7b9cd8ee8
Merge branch 'develop' into 785-wal-improvements 2017-12-10 19:45:52 -05:00
Anton Kaliaev 101680d603
update changelog [ci skip] 2017-12-10 11:35:22 -06:00
Anton Kaliaev d819d5d324
update changelog [ci skip] 2017-12-10 11:34:08 -06:00
Ethan Buchman 6884463ba2 update changelog [ci skip] 2017-12-06 03:38:03 -05:00
Ethan Buchman 167d0e82f9 fixes and version bump 2017-12-06 03:33:03 -05:00
Ethan Buchman 42e77de6a3 changelog; minor stuff; update glide 2017-12-06 02:45:38 -05:00
Ethan Buchman 1e8deacf2e Merge branch 'master' into develop 2017-11-28 04:39:41 +00:00
Adrian Brink 25f9eb782b Upgrade tmlibs dependency to build on Windows 2017-11-28 04:04:58 +00:00
Ethan Buchman 53f15fde07 update changelog 2017-11-17 00:04:03 +00:00
Ethan Buchman d71aed309f some minor changes 2017-10-30 22:52:03 -04:00
Anton Kaliaev 61d76a273f
fixes from Bucky's and Emmanuel's reviews 2017-10-30 11:12:01 -05:00
Anton Kaliaev 1c1c68df8d
fixes from my own review 2017-10-30 00:32:23 -05:00
Anton Kaliaev f6539737de
new pubsub package
comment out failing consensus tests for now

rewrite rpc httpclient to use new pubsub package

import pubsub as tmpubsub, query as tmquery

make event IDs constants
EventKey -> EventTypeKey

rename EventsPubsub to PubSub

mempool does not use pubsub

rename eventsSub to pubsub

new subscribe API

fix channel size issues and consensus tests bugs

refactor rpc client

add missing discardFromChan method

add mutex

rename pubsub to eventBus

remove IsRunning from WSRPCConnection interface (not needed)

add a comment in broadcastNewRoundStepsAndVotes

rename registerEventCallbacks to broadcastNewRoundStepsAndVotes

See https://dave.cheney.net/2014/03/19/channel-axioms

stop eventBuses after reactor tests

remove unnecessary Unsubscribe

return subscribe helper function

move discardFromChan to where it is used

subscribe now returns an err

this gives us ability to refuse to subscribe if pubsub is at its max
capacity.

use context for control overflow

cache queries

handle err when subscribing in replay_test

rename testClientID to testSubscriber

extract var

set channel buffer capacity to 1 in replay_file

fix byzantine_test

unsubscribe from single event, not all events

refactor httpclient to return events to appropriate channels

return failing testReplayCrashBeforeWriteVote test

fix TestValidatorSetChanges

refactor code a bit

fix testReplayCrashBeforeWriteVote

add comment

fix TestValidatorSetChanges

fixes from Bucky's review

update comment [ci skip]

test TxEventBuffer

update changelog

fix TestValidatorSetChanges (2nd attempt)

only do wg.Done when no errors

benchmark event bus

create pubsub server inside NewEventBus

only expose config params (later if needed)

set buffer capacity to 0 so we are not testing cache

new tx event format: key = "Tx" plus a tag {"tx.hash": XYZ}

This should allow to subscribe to all transactions! or a specific one
using a query: "tm.events.type = Tx and tx.hash = '013ABF99434...'"

use TimeoutCommit instead of afterPublishEventNewBlockTimeout

TimeoutCommit is the time a node waits after committing a block, before
it goes into the next height. So it will finish everything from the last
block, but then wait a bit. The idea is this gives it time to hear more
votes from other validators, to strengthen the commit it includes in the
next block. But it also gives it time to hear about new transactions.

waitForBlockWithUpdatedVals

rewrite WAL crash tests

Task:
test that we can recover from any WAL crash.

Solution:
the old tests were relying on event hub being run in the same thread (we
were injecting the private validator's last signature).

when considering a rewrite, we considered two possible solutions: write
a "fuzzy" testing system where WAL is crashing upon receiving a new
message, or inject failures and trigger them in tests using something
like https://github.com/coreos/gofail.

remove sleep

no cs.Lock around wal.Save

test different cases (empty block, non-empty block, ...)

comments

add comments

test 4 cases: empty block, non-empty block, non-empty block with smaller part size, many blocks

fixes as per Bucky's last review

reset subscriptions on UnsubscribeAll

use a simple counter to track message for which we panicked

also, set a smaller part size for all test cases
2017-10-30 00:32:22 -05:00
Ethan Buchman b2b35d7dc1 update changelog 2017-10-27 11:54:20 -04:00
Ethan Buchman a1501dcde8 version bump 2017-10-27 11:54:20 -04:00
Ethan Buchman bb6c15b00a CHANGELOG [ci skip] 2017-10-26 09:42:46 -04:00
Ethan Buchman fcf459158d CHANGELOG [ci skip] 2017-10-26 00:29:58 -04:00
Anton Kaliaev b26f812399
update changelog 2017-10-16 10:58:52 +04:00
Ethan Buchman 3356544706 update changelog 2017-10-10 11:10:48 -04:00
Anton Kaliaev 4bd4d59af5
update changelog [ci skip] 2017-10-10 01:14:00 +04:00
Ethan Buchman aa57e89e21 changelog: add genesis amount->power 2017-10-02 14:28:04 -04:00
Ethan Buchman 7d983a548b changelog 2017-09-22 11:44:25 -04:00
Ethan Buchman b0017c5460 update CHANGELOG [ci skip] 2017-09-21 12:34:37 -04:00
Anton Kaliaev 2252071866 update changelog 2017-09-18 16:36:03 -04:00
Zach Ramsay 044fe56b43 update changelog 2017-09-16 15:24:30 -04:00
Ethan Buchman b9637f7185 Update changelog and add roadmap 2017-09-05 16:25:02 -04:00
Ethan Buchman f644fc5725 changelog 2017-08-10 00:04:07 -04:00
Ethan Buchman 37f1390473 CreateEmptyBlocks and CreateEmptyBlocksInterval 2017-08-08 16:22:37 -04:00
Ethan Buchman d396053872 changelog 2017-07-28 22:11:45 -04:00
Ethan Buchman eed0297ed5 Merge pull request #538 from zramsay/docs-rework
rework docs
2017-07-10 20:32:03 -04:00
Ethan Buchman 75df0d91ba comments from review 2017-07-10 13:39:23 -04:00
Ethan Buchman bcde80fc4f changelog 2017-07-09 18:49:22 -04:00
Ethan Buchman eed3959749 version bump 2017-07-09 13:17:01 -04:00
Zach Ramsay 130ae133c1 fix link in changelog 2017-07-08 14:05:24 -04:00
Ethan Buchman e36e507463 changelog 2017-07-07 13:30:30 -04:00
Ethan Buchman 3c10f7a122 add p2p flush throttle to config 2017-07-07 13:08:52 -04:00
Ethan Buchman ca8c34f966 add consensus reactor sleep durations to the config 2017-07-07 12:39:40 -04:00
Ethan Buchman bfecb5a135 some fixes from review 2017-06-27 16:05:21 -04:00
Ethan Buchman b284d39e05 update changelog 2017-06-26 17:29:39 -04:00
Ethan Buchman 3065059da7 update changelog 2017-06-26 17:20:27 -04:00
Ethan Buchman 10828ad063 changelog 2017-06-24 22:55:48 -04:00
Ethan Buchman c94a92b30d update changelog and readme 2017-06-02 23:33:03 -04:00
Ethan Buchman d19d8e7914 update readme and changelog 2017-06-02 23:18:10 -04:00
Ethan Buchman 3fbe286e5a small fixes to changelog, config, default logging 2017-05-22 08:16:25 -04:00
Ethan Buchman 790e04ed3e add link to list of breaking funcs/methods 2017-05-18 12:32:34 +02:00
Ethan Buchman 772306cac8 update changelog and glide 2017-05-18 06:16:08 -04:00
Ethan Buchman 883b71ca70 update CHANGELOG 2017-05-17 00:27:03 +02:00
Ethan Buchman 6d83c60c40 [types] dont hash validator.Accum 2017-05-17 00:16:38 +02:00
Ethan Buchman cc2b430e68 update glide and changelog 2017-05-17 00:12:56 +02:00
Ethan Buchman 1310c72647 version bump and changelog 2017-04-26 20:06:45 -04:00
Ethan Buchman cc7b2d26e5 Merge branch 'master' into develop 2017-04-26 19:21:06 -04:00
Ethan Buchman 6bcd4242f1 CHANGELOG and version bump 2017-04-26 00:17:53 -04:00
Ethan Buchman d1926bcad1 use tmlibs 2017-04-21 18:12:54 -04:00
Ethan Buchman 5da9b3a803 postmerge 2017-04-21 18:09:47 -04:00
Ethan Buchman 23a6a6f8fc move into p2p package 2017-04-21 18:07:52 -04:00
Ethan Buchman f89279cf11 fix CHANGELOG 2017-04-21 13:39:02 -04:00
Ethan Buchman 58ccefa407 update changelog 2017-04-21 13:06:26 -04:00
Ethan Buchman 62860e4919 Merge pull request #453 from tendermint/feature/rename-txid-to-hash
Rename txid to hash
2017-04-21 12:16:08 -04:00
Anton Kaliaev 5e5fb37774
rename TxID to Hash 2017-04-21 18:39:02 +03:00
Ethan Buchman 7cf773e2d3 cli: testnet cmd inits files for testnet 2017-04-20 18:22:42 -04:00
Ethan Buchman 7d5b62b61f CHANGELOG and version bump 2017-04-18 23:58:24 -04:00
Ethan Buchman 480b24d9f0 CHANGELOG [ci skip] 2017-04-18 23:05:48 -04:00
Ethan Buchman 5420254b36 changelog: add prehistory 2017-03-09 01:34:11 -05:00
Ethan Buchman 8449e9794a CHANGELOG 2017-03-06 04:25:55 -05:00
Ethan Buchman 53d777a2d5 CHANGELOG.md 2017-03-06 01:30:41 -05:00