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.

212 lines
5.6 KiB

9 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
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 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
7 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
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
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
  1. hash: 0f9ba99fd411afaaf90993037b0067c5f9f873554f407a6ae9afa0e2548343c5
  2. updated: 2017-10-27T22:34:38.187149434-04:00
  3. imports:
  4. - name: github.com/btcsuite/btcd
  5. version: 8cea3866d0f7fb12d567a20744942c0d078c7d15
  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: e2b298466b32c7cd5579a9b9b07e968fc9d9452c
  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: 817915b46b97fd7bb80e8ab6b69f01a53ac3eebf
  28. - name: github.com/gogo/protobuf
  29. version: 342cbe0a04158f6dcb03ca0079991a51a4248c02
  30. subpackages:
  31. - proto
  32. - name: github.com/golang/protobuf
  33. version: 1643683e1b54a9e88ad26d98f81400c8c9d9f4f9
  34. subpackages:
  35. - proto
  36. - ptypes
  37. - ptypes/any
  38. - ptypes/duration
  39. - ptypes/timestamp
  40. - name: github.com/golang/snappy
  41. version: 553a641470496b2327abcac10b36396bd98e45c9
  42. - name: github.com/gorilla/websocket
  43. version: ea4d1f681babbce9545c9c5f3d5194a789c89f5b
  44. - name: github.com/hashicorp/hcl
  45. version: 23c074d0eceb2b8a5bfdbb271ab780cde70f05a8
  46. subpackages:
  47. - hcl/ast
  48. - hcl/parser
  49. - hcl/scanner
  50. - hcl/strconv
  51. - hcl/token
  52. - json/parser
  53. - json/scanner
  54. - json/token
  55. - name: github.com/inconshreveable/mousetrap
  56. version: 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
  57. - name: github.com/jmhodges/levigo
  58. version: c42d9e0ca023e2198120196f842701bb4c55d7b9
  59. - name: github.com/kr/logfmt
  60. version: b84e30acd515aadc4b783ad4ff83aff3299bdfe0
  61. - name: github.com/magiconair/properties
  62. version: 8d7837e64d3c1ee4e54a880c5a920ab4316fc90a
  63. - name: github.com/mitchellh/mapstructure
  64. version: 06020f85339e21b2478f756a78e295255ffa4d6a
  65. - name: github.com/pelletier/go-toml
  66. version: 4e9e0ee19b60b13eb79915933f44d8ed5f268bdd
  67. - name: github.com/pkg/errors
  68. version: 645ef00459ed84a119197bfb8d8205042c6df63d
  69. - name: github.com/rcrowley/go-metrics
  70. version: 1f30fe9094a513ce4c700b9a54458bbb0c96996c
  71. - name: github.com/spf13/afero
  72. version: 5660eeed305fe5f69c8fc6cf899132a459a97064
  73. subpackages:
  74. - mem
  75. - name: github.com/spf13/cast
  76. version: acbeb36b902d72a7a4c18e8f3241075e7ab763e4
  77. - name: github.com/spf13/cobra
  78. version: 7b2c5ac9fc04fc5efafb60700713d4fa609b777b
  79. - name: github.com/spf13/jwalterweatherman
  80. version: 12bd96e66386c1960ab0f74ced1362f66f552f7b
  81. - name: github.com/spf13/pflag
  82. version: 97afa5e7ca8a08a383cb259e06636b5e2cc7897f
  83. - name: github.com/spf13/viper
  84. version: 25b30aa063fc18e48662b86996252eabdcf2f0c7
  85. - name: github.com/syndtr/goleveldb
  86. version: b89cc31ef7977104127d34c1bd31ebd1a9db2199
  87. subpackages:
  88. - leveldb
  89. - leveldb/cache
  90. - leveldb/comparer
  91. - leveldb/errors
  92. - leveldb/filter
  93. - leveldb/iterator
  94. - leveldb/journal
  95. - leveldb/memdb
  96. - leveldb/opt
  97. - leveldb/storage
  98. - leveldb/table
  99. - leveldb/util
  100. - name: github.com/tendermint/abci
  101. version: dc33aad9b4e514a2322725ef68f27f72d955c537
  102. subpackages:
  103. - client
  104. - example/counter
  105. - example/dummy
  106. - server
  107. - types
  108. - name: github.com/tendermint/ed25519
  109. version: d8387025d2b9d158cf4efb07e7ebf814bcce2057
  110. subpackages:
  111. - edwards25519
  112. - extra25519
  113. - name: github.com/tendermint/go-crypto
  114. version: dd20358a264c772b4a83e477b0cfce4c88a7001d
  115. - name: github.com/tendermint/go-wire
  116. version: 2baffcb6b690057568bc90ef1d457efb150b979a
  117. subpackages:
  118. - data
  119. - data/base58
  120. - name: github.com/tendermint/iavl
  121. version: 594cc0c062a7174475f0ab654384038d77067917
  122. subpackages:
  123. - iavl
  124. - name: github.com/tendermint/tmlibs
  125. version: d9525c0fb671204450b160807480e1263053fb20
  126. subpackages:
  127. - autofile
  128. - cli
  129. - cli/flags
  130. - clist
  131. - common
  132. - db
  133. - events
  134. - flowrate
  135. - log
  136. - merkle
  137. - pubsub
  138. - pubsub/query
  139. - test
  140. - name: golang.org/x/crypto
  141. version: 2509b142fb2b797aa7587dad548f113b2c0f20ce
  142. subpackages:
  143. - curve25519
  144. - nacl/box
  145. - nacl/secretbox
  146. - openpgp/armor
  147. - openpgp/errors
  148. - poly1305
  149. - ripemd160
  150. - salsa20/salsa
  151. - name: golang.org/x/net
  152. version: c73622c77280266305273cb545f54516ced95b93
  153. subpackages:
  154. - context
  155. - http2
  156. - http2/hpack
  157. - idna
  158. - internal/timeseries
  159. - lex/httplex
  160. - trace
  161. - name: golang.org/x/sys
  162. version: b98136db334ff9cb24f28a68e3be3cb6608f7630
  163. subpackages:
  164. - unix
  165. - name: golang.org/x/text
  166. version: 6eab0e8f74e86c598ec3b6fad4888e0c11482d48
  167. subpackages:
  168. - secure/bidirule
  169. - transform
  170. - unicode/bidi
  171. - unicode/norm
  172. - name: google.golang.org/genproto
  173. version: f676e0f3ac6395ff1a529ae59a6670878a8371a6
  174. subpackages:
  175. - googleapis/rpc/status
  176. - name: google.golang.org/grpc
  177. version: f7bf885db0b7479a537ec317c6e48ce53145f3db
  178. subpackages:
  179. - balancer
  180. - codes
  181. - connectivity
  182. - credentials
  183. - grpclb/grpc_lb_v1/messages
  184. - grpclog
  185. - internal
  186. - keepalive
  187. - metadata
  188. - naming
  189. - peer
  190. - resolver
  191. - stats
  192. - status
  193. - tap
  194. - transport
  195. - name: gopkg.in/go-playground/validator.v9
  196. version: 1304298bf10d085adec514b076772a79c9cadb6b
  197. - name: gopkg.in/yaml.v2
  198. version: eb3733d160e74a9c7e442f435eb3bea458e1d19f
  199. testImports:
  200. - name: github.com/davecgh/go-spew
  201. version: 04cdfd42973bb9c8589fd6a731800cf222fde1a9
  202. subpackages:
  203. - spew
  204. - name: github.com/pmezard/go-difflib
  205. version: d8ed2627bdf02c080bf22230dbb337003b7aba2d
  206. subpackages:
  207. - difflib
  208. - name: github.com/stretchr/testify
  209. version: 2aa2c176b9dab406a6970f6a55f513e8a8c8b18f
  210. subpackages:
  211. - assert
  212. - require