Commit Graph

  • be065ce051 tests: new test for WithTopicMsgIdFunction Wondertan 2022-01-23 00:06:47 +02:00
  • fed393e39d chore: better name Wondertan 2022-01-22 23:48:23 +02:00
  • fcbbfd8131 feat: detach WithMsgIdFunction Wondertan 2022-01-22 14:00:57 +02:00
  • f9b2412210 fix: use RawID in traceRPCMeta to avoid allocations Wondertan 2022-01-22 13:42:02 +02:00
  • 9fbf906fb5 feat: extract RawID from ID Wondertan 2022-01-22 13:34:19 +02:00
  • 6faf473cad chore: hello mister mutex hat Wondertan 2022-01-22 13:27:50 +02:00
  • ec5e9b42a9 chore: go fmt and return timecache named import Wondertan 2022-01-09 18:41:10 +02:00
  • 6035642336 feat: new WithMsgIdFunction topic option to enable topics to have own msg id generation rules Wondertan 2022-01-09 18:23:33 +02:00
  • 0e687f24a6 feat: integrate msgIdGenerator Wondertan 2022-01-09 18:14:39 +02:00
  • 957fc4f80c feat: introduce msgIdGenerator and add ID field to Message wrapper Wondertan 2022-01-09 18:05:29 +02:00
  • b57bcc8b36 add tests for clearing the peerPromises map vyzo 2022-01-13 13:20:32 +02:00
  • 9e39259ffe properly clear the peerPromises map vyzo 2022-01-13 13:20:20 +02:00
  • 6b31a7bd2a more info rene 2021-12-22 12:59:49 +01:00
  • 3b1c59c733 add to MinTopicSize godoc re topic size rene 2021-12-22 12:55:26 +01:00
  • c6dd285c5d
    feat: plumb through context changes (#459) Gus Eggert 2021-11-11 11:09:45 -05:00
  • 5c90105738 support MinTopicSize without a discovery mechanism Daniel Martí 2021-09-24 15:51:19 +01:00
  • 85a1f01869 clear peerPromises map when fullfilling a promise vyzo 2021-10-29 11:42:20 +03:00
  • cee11bb0e4 README: remove obsolete notice, fix example code for tracing. vyzo 2021-10-15 17:29:49 +03:00
  • 7ef0669764
    remove peer filter check from subscriptions (#453) Simon Zhu 2021-09-22 00:46:09 -07:00
  • 628353661b Create peer filter option Simon Zhu 2021-09-20 20:17:33 -07:00
  • 0c7092d1f5 make slowness a warning, with a user configurable threshold vyzo 2021-07-30 22:43:11 +03:00
  • 257d133a07 reduce log spam from empty heartbeat messages vyzo 2021-07-30 12:58:58 +03:00
  • 37d36d77b1 fix: code review Richard Ramos 2021-07-29 17:54:04 -04:00
  • faffd2a0bd add support for custom protocol matching function Richard Ramos 2021-07-29 12:59:09 -04:00
  • 02dae6505c
    fix: downgrade multiaddr (#439) Steven Allen 2021-07-27 22:43:38 -07:00
  • 3951ef46dd
    fix: downgrade core (#438) Steven Allen 2021-07-27 22:08:35 -07:00
  • 24b2d00e07
    chore: update deps (#437) Marten Seemann 2021-07-27 19:14:01 +02:00
  • ba28f8ecfc
    fix: remove deprecated Bytes call (#436) Steven Allen 2021-07-22 15:31:08 -07:00
  • 2efd313b83
    cleanup: fix vet and staticcheck failures (#435) Ian Davis 2021-07-22 23:27:32 +01:00
  • 37ebe34352 Revert noisy newline changes Ian Davis 2021-07-19 13:32:00 +01:00
  • 079d8973a6 fix: avoid panic when peer is blacklisted after connection Ian Davis 2021-07-19 11:49:11 +01:00
  • 3b98004eed release priority locks early when handling batches vyzo 2021-07-13 20:38:07 +03:00
  • e9e5a9913f don't respawn writer if we fail to open a stream; declare it a peer error vyzo 2021-07-13 20:30:35 +03:00
  • b289ec5017 batch process dead peer notifications vyzo 2021-07-13 20:24:29 +03:00
  • 9d86090f42 use a priority lock instead of a semaphore vyzo 2021-07-13 19:49:35 +03:00
  • 0732576319 do the notification in a goroutine vyzo 2021-07-12 19:30:43 +03:00
  • 861bb84b1e emit new peer notification without holding the semaphore vyzo 2021-07-12 19:27:01 +03:00
  • ac4a401fd6 use a semaphore for new peer notifications so that we don't block the event loop vyzo 2021-07-12 19:22:35 +03:00
  • 1f8e231861 don't accumulate pending goroutines from new connections vyzo 2021-07-12 19:04:39 +03:00
  • 65f48fb2c8 rename RawTracer's DroppedInSubscribe into UndeliverableMessage Michael Muré 2021-07-13 12:50:02 +02:00
  • 9be1c593c6 add a new RawTracer event to track messages dropped in Subscribe Michael Muré 2021-07-13 12:30:45 +02:00
  • 3c7689d482 add an option to configure the Subscription output queue length Michael Muré 2021-07-12 21:56:55 +02:00
  • c02d4c7179 fix some comments Michael Muré 2021-07-12 21:56:09 +02:00
  • 50b1cfadc8 expose more events for RawTracer Michael Muré 2021-07-12 12:58:24 +02:00
  • 55d412efa7 Make close concurrent safe gammazero 2021-06-14 14:03:52 -07:00
  • e25f98c402 Fix close of closed channel gammazero 2021-06-14 12:11:15 -07:00
  • e6ad80cf47
    Update README to point to correct example directory (#424) Med Mouine 2021-05-17 12:12:00 -04:00
  • 6195a09441
    fix: remove deprecated and never used topic descriptors (#423) Steven Allen 2021-05-11 12:55:14 -07:00
  • 0094708cc4
    Refactor Gossipsub Parameters To Make Them More Configurable (#421) Steven Allen 2021-05-03 08:59:15 -07:00
  • cbb7bfc1f1 add tests for gs features and custom protocols vyzo 2021-04-02 14:43:27 +03:00
  • 0e387d79fb add support for custom gossipsub protocols and feature tests vyzo 2021-04-02 13:43:32 +03:00
  • 2ed84f4515
    RIP travis, Long Live CircleCI (#414) vyzo 2021-04-02 21:50:05 +03:00
  • e6eff445d4
    Ignore transient connections (#412) vyzo 2021-04-01 23:45:09 +03:00
  • 7a3d0ca396 demote log spam to debug vyzo 2021-04-01 19:03:06 +03:00
  • eda69749ab fix bug nisdas 2021-03-31 21:24:46 +08:00
  • 7644a650ff add last amount of validation nisdas 2021-03-31 21:20:38 +08:00
  • 3ea6751619 add threshold validation nisdas 2021-03-31 21:10:55 +08:00
  • 5cd1316efc strengthen validation nisdas 2021-03-31 20:53:19 +08:00
  • 84302e9633 rename checkSignature to checkSigningPolicy vyzo 2021-03-26 10:47:11 +02:00
  • 175d43f4e7 rename validation.Publish to PushLocal vyzo 2021-03-26 10:41:42 +02:00
  • 32b8d8958e fix TestValidate, add TestValidate2 vyzo 2021-03-19 21:44:02 +02:00
  • 37e77dc51e skip flaky test until we can fix it vyzo 2021-03-19 19:02:28 +02:00
  • 005ac1598c implement synchronous validation for locally published messages vyzo 2021-03-19 18:36:50 +02:00
  • 5457a2845b expose internalTracer as RawTracer vyzo 2021-03-10 13:39:56 +02:00
  • 05c505ef60 export rejection named string constants vyzo 2021-03-10 13:23:41 +02:00
  • 6c1addf493 more intelligent handling of ip whitelist check vyzo 2021-02-12 20:16:19 +02:00
  • 69868db8cf remove obsolete explicit IP whitelisting in favor of subnets vyzo 2021-02-09 10:23:47 +02:00
  • 84f577bdd1 add subnet whitelisting for IPColocation vyzo 2021-02-09 10:17:30 +02:00
  • 9e129db766 defer stream removal instead of doing it inline. vyzo 2021-01-12 16:26:38 +02:00
  • b080f595bb add test for inbound stream deduplication vyzo 2021-01-12 15:15:46 +02:00
  • 8676a0e25b deduplicate inbound streams vyzo 2021-01-12 14:52:00 +02:00
  • 352c6b993e populate receivedFrom field in delivery trace vyzo 2020-12-16 19:13:26 +02:00
  • 4f972a14dd add receivedFrom field in delivery trace vyzo 2020-12-16 19:11:57 +02:00
  • 98f8611700
    fix: reduce log spam (#394) Steven Allen 2020-12-10 10:19:39 -08:00
  • aa4f9dac2f fix: treat peers already connected to the host before pubsub is initialized as valid potential pubsub peers Adin Schmahmann 2020-12-06 14:53:25 -05:00
  • 4336d5ae71 test: add test for if nodes are connected before pubsub is started Adin Schmahmann 2020-12-06 14:14:52 -05:00
  • 08c17398fb feat: update to go-libp2p-core 0.7.0 Steven Allen 2020-09-02 15:32:05 -07:00
  • 68264088b7
    Add go-libp2p example in README.md (#392) incognitomode 2020-10-26 21:13:21 +01:00
  • 89f61abf29 subscription filters vyzo 2020-09-30 14:53:57 +03:00
  • d6c20b59fc remove multi-topic message support vyzo 2020-09-29 18:05:54 +03:00
  • f7f33e10cc satisfy race detector nisdas 2020-09-10 17:19:19 +08:00
  • b0d384d2e8 clean up nisdas 2020-09-10 16:27:18 +08:00
  • 309d45acef copy string topic nisdas 2020-09-10 16:24:14 +08:00
  • ffa2e3e055 add test for score adjustment from topis params reset vyzo 2020-09-09 15:22:32 +03:00
  • c82d664e8f prettify things vyzo 2020-09-09 15:15:41 +03:00
  • 73880606b5 add test for topic score parameter reset method vyzo 2020-09-09 14:52:15 +03:00
  • 26bb27357b add test for topic score parameter reset vyzo 2020-09-09 14:47:36 +03:00
  • 5d06aa2d4f add api for dynamically setting and resetting topic score parameters vyzo 2020-08-12 12:29:49 +03:00
  • a3445b756f add support for priority topic delivery weights vyzo 2020-09-05 23:35:13 +03:00
  • 40762e1362 tweak duplicate/reject weights vyzo 2020-09-05 20:53:24 +03:00
  • 2ed9fd55ff decay global counters after 2 min vyzo 2020-09-05 14:29:14 +03:00
  • 8191980fc8 decouple global coutner decay from source counter decay vyzo 2020-09-05 14:19:15 +03:00
  • 1d21536720 add warning for failure to parse IP out of remote multiaddr vyzo 2020-09-04 14:51:09 +03:00
  • 14d1a35e0c more docs vyzo 2020-09-04 14:49:25 +03:00
  • c242b2e7be configure the peer gater using a parameter object, docs and stuff vyzo 2020-09-04 14:44:07 +03:00
  • f595227544 disable codecov annotations, makes things unreadable vyzo 2020-09-03 15:27:08 +03:00
  • 45e1233b05 further tweak gate threshold weights vyzo 2020-09-03 13:34:15 +03:00
  • 8408e700e2 fix test races vyzo 2020-09-03 12:34:20 +03:00
  • be1b155d45 use IPs for peer gater stat tracking vyzo 2020-09-03 11:59:38 +03:00
  • 9f5b106a12 mix total accounting components with different weights vyzo 2020-09-03 10:24:00 +03:00