Commit Graph

7233 Commits

Author SHA1 Message Date
y
e4eb6754dd [net] Tor dialers: return error instead of panic
Refactor the Tor Dialers to return an error instead of panicking via
unwrap(). In any case, we don't expect this to happen because new
dialers are instantiated using a macro that ensures that endpoints have
valid hosts and ports.
2023-11-16 13:42:21 -05:00
y
573d283c63 update arti to v0.11.0 2023-11-16 10:35:31 -05:00
parazyd
375a8b41ed chore: Update create dependencies 2023-11-16 15:25:38 +01:00
parazyd
648989e36c darkirc: Update eventgraph API 2023-11-16 15:25:38 +01:00
parazyd
e12ea8d31b tau: Update eventgraph API 2023-11-16 15:25:38 +01:00
parazyd
5580559707 genev: Update eventgraph API 2023-11-16 15:25:38 +01:00
parazyd
915520ea99 eventgraph: Use atomic database operations.
Additionally this changes the dag_insert API to take a slice of events.
2023-11-16 15:25:38 +01:00
parazyd
cf4f85f7e9 eventgraph: Abstract dag_prune into a separate reusable function and make it atomic. 2023-11-16 15:25:38 +01:00
parazyd
25d919ea91 Makefile: Pass target variables to inner darkirc Makefile.
This should be done for other bins as well when not lazy.
2023-11-16 15:25:38 +01:00
lunar-mining
1d5f72739f book: add tor-darkirc tutorial to SUMMARY 2023-11-16 13:55:08 +01:00
parazyd
3b21fcaa7b darkirc: Abstract seen_db handling into separate functions
This will initialize the sled tree on-demand. Additionally, we make the
handling more robust and will disconnect the client on any potential sled
errors that might happen.

We also make mark_seen() write atomically into the sled tree via sled::Batch.
2023-11-16 13:11:21 +01:00
x
92c4f2760e contribute doc: add a few TODOs 2023-11-16 11:30:14 +01:00
x
959b9f0871 contribute doc: add refs for p2p resource manager and conn algo to find more info. 2023-11-16 11:03:59 +01:00
x
a9bb2146b1 contribute doc: fix minor formatting error 2023-11-16 10:58:17 +01:00
x
dc1188f742 update the contribute doc 2023-11-16 10:51:59 +01:00
y
b42a36f2bd [darkirc] fix syntax issues in meetbot 2023-11-15 17:58:25 -05:00
Dastan-glitch
ade0aa1dc7 bin/tau: [tau-python] alias UTC instead of importing it 2023-11-15 18:28:47 +03:00
y
f94b995257 [doc] tor-darkirc.md: typos and bulletproofing 2023-11-15 09:52:11 -05:00
y
90f4dbd576 [doc] Add tor seeds to tor-darkirc.md 2023-11-15 09:46:26 -05:00
y
3e2893dd0e [doc] Fix tor-darkirc guide
Remove bad instructions that told people to modify Rust source code.
2023-11-15 09:41:02 -05:00
y
2a028a8415 [doc] Add instructions for Tor-enabled darkirc
The page is not added to src/SUMMARY.md as we are still in the process
of making this feature stable. When it comes time to officially support
and release darkirc, this page should be added to SUMMARY.
2023-11-15 09:27:10 -05:00
y
633cb68b9a [net] Add function to check local hosts
- Add function in Hosts to check for Urls we would consider to be
  'local' rather than 'global' or remote
- Add unit tests
- Refactor existing code to use the new function
2023-11-14 13:46:56 -05:00
y
959981a7f6 [net] simplify loop syntax 2023-11-14 13:46:56 -05:00
aggstam
551e357ef2 net/protocol/protocol_address: stupidity be gone 2023-11-14 18:58:41 +02:00
aggstam
023ef2b0b1 net/hosts: proper pfizer dosage for everyone in quarantine 2023-11-14 17:37:30 +02:00
lunar-mining
9a63c70658 dnet: add msg log usage to README 2023-11-14 12:58:42 +01:00
parazyd
5949a7ec38 net/hosts: Re-enable quarantine, and actually reject peers after limit.
Later on we can do some kind of whitelist if we want, or a way to
un-reject certain peers.
2023-11-14 09:40:30 +01:00
aggstam
fb0671b56c lilith: periodic purge strategy changed
Previously we were picking N random hosts which doesn't ensure that we will check all hosts for liveness. The new strategy uses a ring buffer where we always check the first N hosts and then push live ones back at the end, ensuring that we will test all of our hosts over time. New hosts are appended at the end of ring buffer, since the are the most recent, hence live ones
2023-11-14 03:01:27 +02:00
aggstam
af7c280dd3 net/protocol/protocal_address: minor calculation fix 2023-11-14 01:44:52 +02:00
aggstam
5be166b686 net/protocol/protocal_address: minor calculation fix 2023-11-14 01:22:41 +02:00
aggstam
4ff6176fdd net: AddrsMessage to include both addressis with and without preferred transports 2023-11-14 01:17:41 +02:00
aggstam
af9124c93a net: Use transports when polling GetAddrsMessage to seed/peer
This allows the seed/peer to only send back addresses with our desired transports
2023-11-13 21:36:35 +02:00
aggstam
caeb51fdb7 net/hosts/fetch_with_schemes(): limit added 2023-11-13 20:34:29 +02:00
x
9f78994226 fix faucetd compile error 2023-11-13 16:36:17 +01:00
parazyd
a827db405f net: Temporarily disable peer quarantine 2023-11-13 16:29:13 +01:00
x
70a30a211f event_graph: add TODO for methods 2023-11-13 16:06:25 +01:00
lunar-mining
54bb7ed476 dnet: fix typo on README 2023-11-13 15:39:24 +01:00
lunar-mining
b5b8179648 dnet: fix env usage in README 2023-11-13 15:10:41 +01:00
Dastan-glitch
388dec06db bin/darkirc: [bots] strip response of whitspaces 2023-11-13 16:53:24 +03:00
lunar-mining
cff87e6926 dnet: move python-venv from root .gitignore to bin/dnet/.gitignore 2023-11-13 13:45:16 +01:00
lunar-mining
6cd14256fc dnet: add venv activation step to README 2023-11-13 13:42:27 +01:00
lunar-mining
964e3bcc9d add bin/dnet/python-venv to .gitignore and standadize naming in dnet README 2023-11-13 13:39:56 +01:00
lunar-mining
5cc1100b6e dnet: add venv instructions to README and do minor edit 2023-11-13 13:36:13 +01:00
lunar-mining
04780f241b dnet: add README 2023-11-13 13:17:02 +01:00
aggstam
4aeea2b5cb .gitignore: renamed .python-venv to python-venv since hidden folder can't be sourced 2023-11-13 14:08:16 +02:00
aggstam
5e5d8ecd14 .gitignore: added .python-venv folder 2023-11-13 14:05:20 +02:00
lunar-mining
2b35f1cfb9 dnet: update default config 2023-11-13 12:59:38 +01:00
x
d9083ffe37 money_transfer contract: introduce an internal API for fine grained control over the transfer call structure.
The API will change so don't use it just yet.
2023-11-13 09:44:41 +01:00
lunar-mining
6bf00e5d29 dnet: add additional check to prevent logic error
also remove unnecessary nesting
2023-11-12 19:02:53 +01:00
parazyd
b94b6fbeae eventgraph: Initialize prune task through OnceCell, and only when wanted 2023-11-12 16:35:32 +01:00