Commit Graph

8661 Commits

Author SHA1 Message Date
parazyd
65df99394b net/transport/tor: Release stream Mutex lock after obtaining a RendRequest 2024-05-30 19:31:50 +02:00
parazyd
bddf4ce774 net/transport/tor: Delete unused code 2024-05-30 19:30:25 +02:00
parazyd
9465d558e9 net/transport/tor: Return proper errors where applicable 2024-05-30 19:29:05 +02:00
parazyd
871d89a3e9 net/transport: Add experimental Tor hidden service support 2024-05-30 19:27:20 +02:00
draoi
08141d9c50 net: select from the greylist if we have no white or gold
Also add a setting to allow us to specify slot_preference_strict = true, which
would disable greylist selection if set, even if we have no white or
gold connections. (this might be useful in the case of an attack where we want to strictly avoid greylist entries).
2024-05-30 17:50:16 +02:00
skoupidi
cbb53aa8ec drk: refactored DAO votes functionalities 2024-05-30 17:54:28 +03:00
darkfi
24cd6dba8f wallet: copy highlighted text to the clipboard 2024-05-30 16:38:46 +02:00
darkfi
a4322e4265 wallet: align cursor with LHS of next chars rather than RHS of prev chars 2024-05-30 16:18:07 +02:00
darkfi
d0303017a0 wallet: add Property wrapper types, and begin prelim selection code 2024-05-30 15:38:49 +02:00
darkfi
cb81b93e65 wallet: cursor scrolls editbox 2024-05-30 10:29:06 +02:00
skoupidi
c6382e8d12 drk: refactored DAO proposals functionalities 2024-05-29 16:36:41 +03:00
darkfi
ed85b9a955 wallet: editing text, support backspace/delete 2024-05-29 11:11:17 +02:00
darkfi
7c6b98e43f wallet: create editbox widget and textshaper tool 2024-05-28 21:53:30 +02:00
skoupidi
0f158ce8a2 darkfid/task/garbage_collect: minor fix 2024-05-28 16:55:09 +03:00
skoupidi
78eeefe1d5 DAO: changed nullifiers SMT logic to store a set of roots and updated propose entrypoint accordingly 2024-05-28 14:11:21 +03:00
skoupidi
328e9de3ef Cargo.toml: added missing blockchain feature 2024-05-28 12:06:11 +03:00
parazyd
f3fc43d37d error: Clean up unused error definitions 2024-05-28 11:02:22 +02:00
darkfi
8f4103d6e2 system: add condvar_wait_after_notify() unit test 2024-05-27 20:05:03 +02:00
parazyd
ff54b8b289 tests: Fix TLS network transport test 2024-05-27 16:42:26 +02:00
parazyd
358b5e1670 net: Don't care if CryptoProvider has already been installed.
The second time this is done within a single process, it returns an error.
We might want to fix it in a better way.
2024-05-27 16:40:21 +02:00
parazyd
225aeebe7d net: Install default CryptoProvider for TLS connections 2024-05-27 16:24:18 +02:00
parazyd
2e37330d0d chore: Update crate dependencies 2024-05-27 15:29:58 +02:00
dasman
d8fe390e6d bin/darkirc: configurable dag sync attempt and retries 2024-05-27 16:02:58 +03:00
parazyd
1960ca795c blockchain/block_store: Derive serialization instead of manual impl 2024-05-27 14:40:57 +02:00
parazyd
124a9466cf serial: Add support for num-bigint 2024-05-27 14:39:22 +02:00
draoi
15b7bc4bd8 settings: set inbound/ outbound default to 8, white_connect_percent to 70
Also propgagate this change as the default to various configs.
2024-05-27 11:19:16 +02:00
skoupidi
490084b26d blockchain: updated to sled-overlay 0.1.2 2024-05-27 12:15:26 +03:00
parazyd
d2e705b8cc darkirc: Add "no-autojoin" CAP 2024-05-26 16:56:23 +02:00
parazyd
f8543f4143 darkirc/meetbot: Rework code to work over a single connection 2024-05-26 14:00:14 +02:00
dasman
defc1af9cf bin/darkirc: bots send CAP END to complete regestiration 2024-05-26 04:40:01 +03:00
dasman
349ec7413e bin/tau: fix archive monthes and indexing stopped tasks 2024-05-26 04:39:19 +03:00
skoupidi
96a8068ec3 drk: refactor to support SMT
Additionaly, some cleanup was done, minor bugz fixed and updated DAO Propose call with the new setup and added its fee call.
2024-05-25 18:29:40 +03:00
draoi
3e0ddde295 darkirc: fix update line in android.Dockerfile 2024-05-24 17:21:09 +02:00
draoi
70fc34f90e outbound_session: make clippy 2024-05-24 16:22:12 +02:00
draoi
8d9510478e net: add ipv6 addrs to dark list if we do not support ipv6
If ipv6_available is set to false, filter_addrs will send ipv6 addresses
to the darklist.

This is necessary since otherwise they would be deleted by the refinery
and not propagated on the network, even if they are perfectly valid
hosts.

Once on the dark list, these addresses will not be connected to in
OutboundSession.

Note that because there may be a delay when we establish ipv6 connectivity
(since it requires Connector to fail with ENETUNREACH), there is a
possibility of the following happening:

* recv ipv6 addrs, add to greylist
* try to connect to ipv6 addr
* set ipv6_available == false
* recv ivp6 addrs, add to darklist
* we now have duplicate addrs on darklist and greylist.

This is not a problem because the refinery will eventually delete the
greylist entries and from then on the dark list will be the definitive
list for ipv6 addrs.
2024-05-24 16:22:12 +02:00
draoi
0b8ea0db34 net/test: disable gold and white connections 2024-05-24 16:22:12 +02:00
draoi
ca4b415c42 outbound_session: remove SlotPreference
Previously if we didn't meet the gold count or white counts set in
settings, we would select from other lists that do not match what we
specified in the config. This feels like a side effect and in fact we
should more strictly adher to the prefereces.

If our preferences aren't met, we simply do peer discovery.
2024-05-24 16:22:12 +02:00
skoupidi
68d6c77c13 drk: fixed money coin insert due to nullifier column removal 2024-05-24 12:00:10 +03:00
dasman
b93ea66864 darkirc: info log flushed bytes on termination 2024-05-24 04:51:24 +03:00
dasman
d1c2af5244 bin/deg: replace leftover bytes for cleaner event_details 2024-05-24 04:49:58 +03:00
dasman
9e8bdd8630 eventgraph: replayer instruction log simplified a bit 2024-05-24 04:48:52 +03:00
parazyd
9f838d6d40 net/connector: Mark IPv6 unavailability if the connector gets ENETUNREACH 2024-05-23 15:33:24 +02:00
parazyd
d747188055 net/transport: Propagate everything as io::Result 2024-05-23 15:29:46 +02:00
parazyd
c51c1d1a1e net/transport: Use io::Result in the net::transport module instead of crate::Result 2024-05-23 15:17:36 +02:00
draoi
3bf9c67e77 outbound_session: fix bug in Slot white_count calculations
settings.white_count was 90 by default (a percentage) but was being
treated as an absolute value in outbound session.

we fix this and simplify the types to avoid excessive conversions.
2024-05-23 12:40:17 +02:00
darkfi
60858f36d6 wallet: add font fallbacks 2024-05-23 12:09:01 +02:00
skoupidi
0bea8f5697 drk: removed nullifier column from money coin table 2024-05-23 12:46:12 +03:00
skoupidi
d12e49d6d6 drk: fixed fee not using the correct output pubkey 2024-05-23 12:33:31 +03:00
draoi
394ccc7b63 outbound_session: move host to greylist before suspending
This is necessary since it could be a gold or whitelist peer that hasn't
updated and so fails the version exchange. Marking a gold or whitelist
peer as Suspend wouldn't do anything since it would never make it to the
refinery.
2024-05-23 10:37:17 +02:00
skoupidi
fb5865fce4 drk: provide liquidity to dao with transfer and token mint 2024-05-22 20:49:22 +03:00