Commit Graph

10628 Commits

Author SHA1 Message Date
x
e1994a7fd9 drk: Implement tx construction from given calls and their relation-mapping 2025-12-31 16:56:59 +00:00
x
4519ea3b85 sdk: Implement ContractCallImport to be used by external clients 2025-12-31 16:55:20 +00:00
x
500f0c2891 chore: Unify all halo2 deps to be exact
We should still figure out what to do before publishing darkfi-sdk to
crates.io since it probably can't reference a git version.

This might imply publishing our halo2 fork as well, probably under
halo2-darkfi namespace.
2025-12-31 16:54:04 +00:00
dasman
db41ac54f7 darkirc: reverse commitbot's push events order 2025-12-31 17:11:56 +03:00
skoupidi
a685e685c3 darkfid: new testing genesis blocks added 2025-12-31 15:53:38 +02:00
skoupidi
597b216396 darkfid/rpc: use an fn to return miner status responses for cleaner code 2025-12-31 15:53:10 +02:00
skoupidi
e1300d987b darkfid: relaxed unknown proposals handling by banning after 5 consecutive unknown proposals from a channel 2025-12-31 15:52:19 +02:00
jkds
2494e52558 app/gfx: fix subtle bug in apply_view/apply_scissor calc where coords are not relative but absolute so use + old_view.pos() 2025-12-31 14:10:43 +01:00
jkds
489730cb31 app: correct calcs for IME insets 2025-12-31 11:02:41 +01:00
jkds
13755ab328 app: disable miniquad resizing the content when IME is shown. instead transfer the responsibility directly to the app, this way we can avoid flickering where our canvas is resized BEFORE ui updates have been applied, and secondly we can draw a full screen canvas. 2025-12-31 10:51:27 +01:00
jkds
2b67c92877 app/gfx: RETVRN to directly polling method queue 2025-12-31 06:11:58 +01:00
jkds
ac0a2d3f25 app/gfx: remove refresh_task since sleep_interval_ms is now a miniquad setting so this task isnt needed anymore. 2025-12-31 06:11:58 +01:00
jkds
bda9b64d09 net: add reload() fn which reloads settings. currently all stubs except outgoing conns setting 2025-12-31 05:07:22 +01:00
jkds
0897ce2f8c app/gfx: make batch changes use batch end time and completely atomic. drop the entire batch if theres a single conflict 2025-12-31 04:36:29 +01:00
jkds
19c1b8ffea rpc: remove p2p.set_outbound_connections method 2025-12-31 04:07:56 +01:00
jkds
b60d550a3f rpc: move set_outbound_connections from darkirc into rpc p2p handler 2025-12-30 16:52:20 +01:00
jkds
e9a1dbe800 darkirc/rpc: when we check params, just use .unwrap() to get the args after 2025-12-30 16:52:20 +01:00
jkds
88a481d36b app/vid: stop decoding immediately on Video::stop() 2025-12-30 16:01:14 +01:00
jkds
51dc7c4a9b app: introduce window start/stop signals, and use those to adjust the outbound connection count in darkirc plugin from 6 -> 1 (or vice versa) when app is opened/closed 2025-12-30 15:41:19 +01:00
jkds
d9e7a782b4 darkirc/rpc: let Some(...) = ... else { return Json err } 2025-12-30 15:12:53 +01:00
jkds
419da3f849 net: allow runtime modification of outbound connection count. adds a method to darkirc to set_outbound_connections, use the scripts ./script/node_get_info.py and ./script/node_set-connect.py to verify 2025-12-30 14:46:02 +01:00
jkds
a29dbb06b9 app/vid: minor cleanup (Av1VideoData is cloneable so just clone directly) 2025-12-30 13:55:13 +01:00
jkds
ab303d8b0d app: update Makefile asset paths to use dark.fi/assets/ now 2025-12-30 13:41:59 +01:00
jkds
a695718a73 app/vid: add missing VideoDecoder.java file for android hardware accel vid decoder 2025-12-30 13:30:07 +01:00
jkds
edc37a3724 app/vid: cleanup java JNI glue code 2025-12-30 12:42:32 +01:00
jkds
cb92bdd847 app/vid: decode video using native hardware on android 2025-12-30 12:35:43 +01:00
jkds
a9f058d197 app/vid: improve log output 2025-12-30 12:35:43 +01:00
jkds
cc571d4851 remove all () from the ends of log targets: foo::bar() => foo::bar 2025-12-30 12:09:29 +01:00
skoupidi
44a9de17f1 net/settings: minor cleanup 2025-12-30 12:10:31 +02:00
oars
7ddb347c54 doc/misc/nodes/public-guide: guide for autohosting public ipv6 and tor nodes 2025-12-30 11:30:54 +03:00
oars
c2904cdbaf doc: DEP-0007: update docs with changes to net settings 2025-12-30 11:30:54 +03:00
oars
852573bf70 script: DEP-0007: add network profiles to net setting section of the toml configs 2025-12-30 11:30:54 +03:00
oars
1c9391b0b6 example/dchat/dchatd: DEP-0007: add network profiles to net setting section of the toml configs 2025-12-30 11:30:54 +03:00
oars
9cce43b5bf contrib/localnet: DEP-0007: add network profiles to net setting section of the toml configs 2025-12-30 11:30:54 +03:00
oars
81bd50925c bin/app: DEP-0007: rename allowed_transports, retrieve outbound_connect_timeout, channel_handshake_timeout, channel_heartbeat_interval from network profiles 2025-12-30 11:30:54 +03:00
oars
4092cf7231 bin/genev: DEP-0007: add network profiles to net setting section of the toml configs 2025-12-30 11:30:54 +03:00
oars
9cc3046f23 bin/lilith: DEP-0007: rename allowed_transports, manually add default network profiles for all schemes public nodes possibly can use 2025-12-30 11:30:54 +03:00
oars
310bc67a76 bin/fud: DEP-0007: add network profiles to net setting section of fud toml config and use try_into to map settings 2025-12-30 11:30:54 +03:00
oars
ed7b39b930 bin/tau/taud: DEP-0007: add network profiles to net setting section of tau toml config, use the maximum outbound_connect_timeout from all the network profiles for dag sync timeout 2025-12-30 11:30:54 +03:00
oars
a7d5d02fb7 bin/darkfid: DEP-0007: add network profiles to net setting section of darkfid toml config, retrieve outbound_connect_timeout from network profiles 2025-12-30 11:30:54 +03:00
oars
757f1d0542 bin/darkirc: DEP-0007: add network profiles to net setting section of darkirc toml configs, use the maximum outbound_connect_timeout from all the network profiles for dag sync timeout 2025-12-30 11:30:54 +03:00
oars
ada44e3faf dht: DEP-0007: rename allowed_transports to active_profiles 2025-12-30 11:30:54 +03:00
oars
dc57ad3259 event_graph: DEP-0007: rename allowed_transports, retrieve outbound_connect_timeout from network profiles 2025-12-30 11:30:54 +03:00
oars
ee33b9de3b net: DEP-0007: rename allowed_transports and mixed_transports, retrieve outbound_connect_timeout, channel_handshake_timeout, channel_heartbeat_interval from network profiles 2025-12-30 11:30:54 +03:00
oars
8c84b13a26 net/settings: DEP-0007: add network profiles to Settings 2025-12-30 11:30:54 +03:00
oars
860a0e1ed5 bin/app/plugin: DEP-0006: hardcode darkirc and fud as app_name in their respective plugin 2025-12-30 11:30:54 +03:00
oars
9e119068fa bin/lilith: DEP-0006: manually add app identifier for each p2p network in lilith config 2025-12-30 11:30:54 +03:00
oars
179211b2c7 bin,example/dchat,script: DEP-006: retrieve app_name and app_version from CARGO_PKG_NAME and CARGO_PKG_VERSION for use in net Version message 2025-12-30 11:30:54 +03:00
oars
8b7ee9274e net: DEP-0006: add app identifier to Version and Verack messages and check app identifier is the same during version exchange 2025-12-30 11:30:54 +03:00
oars
8b667eccdb net: make modification to banning logic for inbound connection and ban an outbound peer during magic bytes & version exchange mismatch
- when banning a host on an inbound connection, don't ban all ports if we already have a successful connection with that host on a different port
 - if we have magic_bytes mismatch during message decoding or app version mismatch during version exchange ban(blacklist) the peer if it is an outbound session
   so that we don't share this misconfigured or malicious peer with other nodes
2025-12-30 11:30:54 +03:00