You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
5.7 KiB

9 years ago
7 years ago
9 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
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
8 years ago
8 years ago
7 years ago
8 years ago
9 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
  1. hash: b0397f8c86e8131753fce91514314fe871ffb2562452a9f2125dbcd3cea600c8
  2. updated: 2017-12-02T23:34:41.775549968-05:00
  3. imports:
  4. - name: github.com/btcsuite/btcd
  5. version: 2e60448ffcc6bf78332d1fe590260095f554dd78
  6. subpackages:
  7. - btcec
  8. - name: github.com/ebuchman/fail-test
  9. version: 95f809107225be108efcf10a3509e4ea6ceef3c4
  10. - name: github.com/fsnotify/fsnotify
  11. version: 4da3e2cfbabc9f751898f250b49f2439785783a1
  12. - name: github.com/go-kit/kit
  13. version: e3b2152e0063c5f05efea89ecbe297852af2a92d
  14. subpackages:
  15. - log
  16. - log/level
  17. - log/term
  18. - name: github.com/go-logfmt/logfmt
  19. version: 390ab7935ee28ec6b286364bba9b4dd6410cb3d5
  20. - name: github.com/go-playground/locales
  21. version: e4cbcb5d0652150d40ad0646651076b6bd2be4f6
  22. subpackages:
  23. - currency
  24. - name: github.com/go-playground/universal-translator
  25. version: 71201497bace774495daed26a3874fd339e0b538
  26. - name: github.com/go-stack/stack
  27. version: 259ab82a6cad3992b4e21ff5cac294ccb06474bc
  28. - name: github.com/gogo/protobuf
  29. version: 342cbe0a04158f6dcb03ca0079991a51a4248c02
  30. subpackages:
  31. - gogoproto
  32. - proto
  33. - protoc-gen-gogo/descriptor
  34. - name: github.com/golang/protobuf
  35. version: 1e59b77b52bf8e4b449a57e6f79f21226d571845
  36. subpackages:
  37. - proto
  38. - ptypes
  39. - ptypes/any
  40. - ptypes/duration
  41. - ptypes/timestamp
  42. - name: github.com/golang/snappy
  43. version: 553a641470496b2327abcac10b36396bd98e45c9
  44. - name: github.com/gorilla/websocket
  45. version: ea4d1f681babbce9545c9c5f3d5194a789c89f5b
  46. - name: github.com/hashicorp/hcl
  47. version: 23c074d0eceb2b8a5bfdbb271ab780cde70f05a8
  48. subpackages:
  49. - hcl/ast
  50. - hcl/parser
  51. - hcl/scanner
  52. - hcl/strconv
  53. - hcl/token
  54. - json/parser
  55. - json/scanner
  56. - json/token
  57. - name: github.com/inconshreveable/mousetrap
  58. version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
  59. - name: github.com/jmhodges/levigo
  60. version: c42d9e0ca023e2198120196f842701bb4c55d7b9
  61. - name: github.com/kr/logfmt
  62. version: b84e30acd515aadc4b783ad4ff83aff3299bdfe0
  63. - name: github.com/magiconair/properties
  64. version: 49d762b9817ba1c2e9d0c69183c2b4a8b8f1d934
  65. - name: github.com/mitchellh/mapstructure
  66. version: 06020f85339e21b2478f756a78e295255ffa4d6a
  67. - name: github.com/pelletier/go-toml
  68. version: 4e9e0ee19b60b13eb79915933f44d8ed5f268bdd
  69. - name: github.com/pkg/errors
  70. version: 645ef00459ed84a119197bfb8d8205042c6df63d
  71. - name: github.com/rcrowley/go-metrics
  72. version: e181e095bae94582363434144c61a9653aff6e50
  73. - name: github.com/spf13/afero
  74. version: 8d919cbe7e2627e417f3e45c3c0e489a5b7e2536
  75. subpackages:
  76. - mem
  77. - name: github.com/spf13/cast
  78. version: acbeb36b902d72a7a4c18e8f3241075e7ab763e4
  79. - name: github.com/spf13/cobra
  80. version: 7b2c5ac9fc04fc5efafb60700713d4fa609b777b
  81. - name: github.com/spf13/jwalterweatherman
  82. version: 12bd96e66386c1960ab0f74ced1362f66f552f7b
  83. - name: github.com/spf13/pflag
  84. version: 4c012f6dcd9546820e378d0bdda4d8fc772cdfea
  85. - name: github.com/spf13/viper
  86. version: 25b30aa063fc18e48662b86996252eabdcf2f0c7
  87. - name: github.com/syndtr/goleveldb
  88. version: adf24ef3f94bd13ec4163060b21a5678f22b429b
  89. subpackages:
  90. - leveldb
  91. - leveldb/cache
  92. - leveldb/comparer
  93. - leveldb/errors
  94. - leveldb/filter
  95. - leveldb/iterator
  96. - leveldb/journal
  97. - leveldb/memdb
  98. - leveldb/opt
  99. - leveldb/storage
  100. - leveldb/table
  101. - leveldb/util
  102. - name: github.com/tendermint/abci
  103. version: 48413b4839781c5c4bf96049a4b39f210ceb88c3
  104. subpackages:
  105. - client
  106. - example/code
  107. - example/counter
  108. - example/dummy
  109. - server
  110. - types
  111. - name: github.com/tendermint/ed25519
  112. version: d8387025d2b9d158cf4efb07e7ebf814bcce2057
  113. subpackages:
  114. - edwards25519
  115. - extra25519
  116. - name: github.com/tendermint/go-crypto
  117. version: dd20358a264c772b4a83e477b0cfce4c88a7001d
  118. - name: github.com/tendermint/go-wire
  119. version: 217a3c439f6497890d232ff5ed24084b43d9bfb3
  120. subpackages:
  121. - data
  122. - data/base58
  123. - nowriter/tmencoding
  124. - name: github.com/tendermint/iavl
  125. version: 594cc0c062a7174475f0ab654384038d77067917
  126. subpackages:
  127. - iavl
  128. - name: github.com/tendermint/tmlibs
  129. version: 21fb7819891997c96838308b4eba5a50b07ff03f
  130. subpackages:
  131. - autofile
  132. - cli
  133. - cli/flags
  134. - clist
  135. - common
  136. - db
  137. - flowrate
  138. - log
  139. - merkle
  140. - pubsub
  141. - pubsub/query
  142. - test
  143. - name: golang.org/x/crypto
  144. version: 94eea52f7b742c7cbe0b03b22f0c4c8631ece122
  145. subpackages:
  146. - curve25519
  147. - nacl/box
  148. - nacl/secretbox
  149. - openpgp/armor
  150. - openpgp/errors
  151. - poly1305
  152. - ripemd160
  153. - salsa20/salsa
  154. - name: golang.org/x/net
  155. version: a8b9294777976932365dabb6640cf1468d95c70f
  156. subpackages:
  157. - context
  158. - http2
  159. - http2/hpack
  160. - idna
  161. - internal/timeseries
  162. - lex/httplex
  163. - trace
  164. - name: golang.org/x/sys
  165. version: 8b4580aae2a0dd0c231a45d3ccb8434ff533b840
  166. subpackages:
  167. - unix
  168. - name: golang.org/x/text
  169. version: 75cc3cad82b5f47d3fb229ddda8c5167da14f294
  170. subpackages:
  171. - secure/bidirule
  172. - transform
  173. - unicode/bidi
  174. - unicode/norm
  175. - name: google.golang.org/genproto
  176. version: 7f0da29060c682909f650ad8ed4e515bd74fa12a
  177. subpackages:
  178. - googleapis/rpc/status
  179. - name: google.golang.org/grpc
  180. version: 401e0e00e4bb830a10496d64cd95e068c5bf50de
  181. subpackages:
  182. - balancer
  183. - codes
  184. - connectivity
  185. - credentials
  186. - grpclb/grpc_lb_v1/messages
  187. - grpclog
  188. - internal
  189. - keepalive
  190. - metadata
  191. - naming
  192. - peer
  193. - resolver
  194. - stats
  195. - status
  196. - tap
  197. - transport
  198. - name: gopkg.in/go-playground/validator.v9
  199. version: 61caf9d3038e1af346dbf5c2e16f6678e1548364
  200. - name: gopkg.in/yaml.v2
  201. version: 287cf08546ab5e7e37d55a84f7ed3fd1db036de5
  202. testImports:
  203. - name: github.com/davecgh/go-spew
  204. version: 04cdfd42973bb9c8589fd6a731800cf222fde1a9
  205. subpackages:
  206. - spew
  207. - name: github.com/pmezard/go-difflib
  208. version: d8ed2627bdf02c080bf22230dbb337003b7aba2d
  209. subpackages:
  210. - difflib
  211. - name: github.com/stretchr/testify
  212. version: 2aa2c176b9dab406a6970f6a55f513e8a8c8b18f
  213. subpackages:
  214. - assert
  215. - require