90 Commits

Author SHA1 Message Date
9bfd0b4295 chore: remove IPNI advertisement relay over pubsub via Lotus node (#12768)
The initial implementation of IPNI used GossipSub as a way to propagate
IPNI advertisement chain. To do this the propagation had to be relayed
through the Lotus node due to strict Filecoin GossipSub validation
rules.

Since then IPNI has moved on to roll out its own sync protocol that
works over HTTP, and HTTP-over-libp2p. This move has been the official
way of advertising content to IPNI federation over a year now.

Therefore, remove the ad relay over pubsub via Lotus node as it is now
considered to have reached its EOL as a mechanism for advertising to
IPNI.
2024-12-10 12:56:04 +00:00
1bc8a8b32c chore: remove (deprecated) deps on build/ proxy-constants
This is a large diff, yet should have exactly zero functional changes

Ideally as a result of this some parts of the depchain will become lighter,
with downstream reaping the same benefits as the team that initiated this split.

P.S. work was done while forming better intuition of current dependency graph
2024-07-22 17:36:12 +04:00
e3deda0b2b cleanup: miner: remove markets and deal-making from Lotus Miner (#12005)
* remove client CLI

* remove markets CLI from miner

* remove markets from all CLI

* remove client API

* update go mod

* remove EnableMarkets flag

* remove market subsystem

* remove dagstore

* remove index provider

* remove graphsync and data-transfer

* remove markets

* go mod tidy

* fix cbor gen deps

* remove deal making from config

* remove eol alert

* go mod tidy

* changes as per review

* make jen

* changes as per review

* merge master

* remove libp2p from config

* miner does not have libp2p conn in api test
2024-06-05 18:14:50 +04:00
89dede32ac drop unused imports 2023-09-11 13:50:55 -04:00
cfaeb2718f fix: networking: avoid dialing when trying to handshake peers
Also, avoid handshaking with peers that don't support the handshake
protocol.
2023-09-08 14:52:14 -07:00
09b566dde1 fix: daemon: set real beacon schedule when importing chain 2023-07-17 09:36:41 -04:00
bb5ba64cca Revert "Merge pull request #9858 from adlrocha/adlrocha/consistent-bcast"
This reverts commit 8b2208fd9a3d70fa4ef419c12a3953337d45c807, reversing
changes made to 2db6b12b78baf6e73cfa16a86ae7e267fd967421.

Unfortunately, this is rather tricky code. We've found several issues so
far and, while we've fixed a few, there are outstanding issues that
would require complex fixes we don't have time to tackle right now.

Luckily, this code isn't actually needed by the main Filecoin chain
which relies on consensus fault reporting to handle equivocation. So we
can just try again later.
2023-04-27 12:25:30 -07:00
b7c297c537 Merge branch 'master' into adlrocha/consistent-bcast 2023-03-28 16:55:06 +02:00
16dad6342c feat(deps): update to go-data-transfer v2, still wip 2023-03-07 11:44:29 -08:00
d1a4f1dc50 fixed bugs in consistent broadcast integration 2022-09-14 19:59:29 +02:00
dd144eaab9 Update other deprecated libp2p imports 2022-08-25 14:23:25 -04:00
2086b219d2 Don't use go-libp2p-core 2022-08-25 14:20:41 -04:00
05cdeb80c3 chore: remove redundant import prefixes 2022-06-15 12:06:22 +02:00
e65fae28de chore: fix imports 2022-06-14 17:00:51 +02:00
789f212f6c refactor: remove old BlockSyncProtocolID 2022-06-08 13:38:56 -04:00
3f3d61b043 Service creation takes interface, not implementation 2022-02-10 08:41:18 -08:00
b2805823ce Pass to validator the interfaces needed to get miner info 2022-02-08 04:55:59 -08:00
1dc6a2fea6 Add indexer pubsub message authentication and rate limiting 2022-02-08 02:53:25 -08:00
4691b2b809 changes to the indexer message relay PR 2022-02-04 12:15:01 +04:00
3ecf478ff0 Merge pull request #8026 from gammazero/feat/cid-to-piece-idx
Lotus chain nodes relay indexer pubsub messages
2022-02-04 12:05:46 +04:00
c084130d3e Lotus chain nodes relay indexer pubsub messages
Content providers announce the availability of indexer data using gossip pubsub.  The content providers are not connected directly to indexers, so the pubsub messages are relayed to indexers via chain nodes. This PR makes chain nodes relay gossip pubsub messages, on the /indexer/ingest/<netname> topic.
2022-02-03 14:56:21 -08:00
dd327f0b22 plumb more contexts 2021-12-17 11:42:09 +02:00
84710cf27e plumb more contexts in lotus 2021-12-13 14:26:59 +02:00
95b128b7bc chain: Cleanup consensus logic 2021-09-02 18:09:37 +02:00
b094e0913d untangle fsjournal dependencies 2021-08-26 15:44:45 +02:00
dab20efc99 add env var controlling msgs sync epochs 2020-11-05 18:09:04 +02:00
0e40a04975 nicer check using Time objects 2020-11-05 18:08:52 +02:00
c6cd699f0d fix nearsync check 2020-11-05 18:08:35 +02:00
32b7797394 only subscribe to messages topic if we are synced within 10 epochs 2020-11-05 18:08:13 +02:00
c463582528 fix a race and optimize hello messages
LifecycleCtx can _only_ be called during startup as it appends an fx hook.
Worse, this was causing us to append an fx hook on every single hello message,
leaking memory (and probably causing other shutdown issues...).
2020-10-10 08:33:06 -07:00
be884e27be feat(markets): update markets 0.7.0 2020-09-30 10:26:50 -07:00
6d29d75724 Merge branch 'master' into inmem-journal 2020-09-14 12:17:45 +01:00
64fa6fd9e5 Draw the rest of the owl
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-09-10 17:41:55 -04:00
453e826a0f rename p2p protocol to /fil/chain/xchg/0.0.1 (backwards-compatible); rename more. 2020-09-07 19:45:34 +01:00
55b1456d45 blocksync: introduce interfaces; rename to chainexchange. 2020-09-07 19:31:43 +01:00
efdfd3ee3e Merge branch 'master' into inmem-journal 2020-08-26 16:38:23 +01:00
5733c71c50 Lint everything
We were ignoring quite a few error cases, and had one case where we weren't
actually updating state where we wanted to. Unfortunately, if the linter doesn't
pass, nobody has any reason to actually check lint failures in CI.

There are three remaining XXXs marked in the code for lint.
2020-08-20 20:46:36 -07:00
884d4ad9df fix clown shoes pubsub validation: we always accept our own self-published messages 2020-08-16 20:46:19 +03:00
2ea5abdfb5 wire journal into miner. 2020-08-11 13:48:32 +01:00
76d40ec408 first pass, ready for review 2020-08-03 12:20:04 -03:00
4e4fbafbe0 only log hello failure if the other side claims to support hello 2020-07-29 14:28:25 -07:00
0594177191 add some better logging for hello handshake failures 2020-07-23 16:58:21 -07:00
ff5ff4d294 Add multiple drand configs
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-23 18:45:08 +02:00
ffd012906c add peer ID to hello protocol failure log 2020-07-01 16:20:05 -07:00
4f9c907248 rename build.{BlockDelay=>BlockDelaySecs}.
Since this global is not typed as a time.Duration,
rather as an int, it makes sense to clarify the unit.
2020-06-30 14:26:49 +01:00
5074cf8beb import DrandConfig from dtypes 2020-06-23 16:23:06 -04:00
b448de422e improve DrandConfig dependency injection 2020-06-23 16:01:10 -04:00
628872d0e4 forgot my go fmt hook 2020-06-23 15:10:27 -04:00
566a99240d allow overriding drand config 2020-06-23 13:33:18 -04:00
9262661135 chore(deps): update to fil-markets 0.3.0
Updates to latest fil markets with resumability and other fixes
2020-06-15 15:43:47 -07:00