10961 Commits

Author SHA1 Message Date
darkfi
eecda86d09 app: make cancel and done edit buttons call menu methods 2026-02-16 22:28:50 +01:00
darkfi
829bc9ed60 app: add menu edit mode buttons: cancel and done 2026-02-16 19:16:04 +01:00
darkfi
00b230fe1e app/menu: add a fade zone 2026-02-14 10:54:09 +01:00
darkfi
00cdc2ea6a app: drag to reorder menu items 2026-02-13 19:14:31 +01:00
darkfi
7bc50e4540 app/menu: click X logic 2026-02-13 19:14:31 +01:00
G10h4ck
7e2c613054 net: add UPnP IGD NAT traversal support
Implement opt-in UPnP IGD port forwarding for P2P nodes behind NAT,
enabling inbound connections without manual router configuration.
This is gated behind the `upnp-igd` feature flag.

Changes:
- Add PortMapping trait for pluggable port-mapping protocols (UPnP, PCP, NAT-PMP...)
- Add optional oxy-upnp-igd v0.1 dependency behind `upnp-igd`
- Parse UpnpConfig (enabled, discovery_timeout, lease_duration, description,
  refresh_interval) from listener URL
- Periodically refresh external address and publish it to the P2P network
- Add UPnP-specific error handling
- Enable `upnp-igd` feature in darkirc (opt-in; not enabled by default)

Port mappings are created lazily once a gateway is discovered and are
automatically renewed. External addresses are tagged `source=upnp` and
refreshed at a configurable interval.

Signed-off-by: Gioacchino Mazzurco <gio@polymathes.cc>
Reviewed-by: grug
Reviewed-by: upgrayedd
2026-02-13 13:33:29 +02:00
darkfi
a32718b8fb app/menu: adjust hammy handle for menu 2026-02-12 15:30:22 +01:00
skoupidi
06ff2454fd validator/utils: minor fix in worst_fork_index() 2026-02-12 15:41:47 +02:00
darkfi
6a5d23df31 app: cargo update 2026-02-12 12:00:19 +01:00
darkfi
0ad7eb786c app/menu: proper shapes for long select menu 2026-02-12 12:00:19 +01:00
skoupidi
5b085e7538 darkfid: new testing genesis blocks added 2026-02-11 16:27:38 +02:00
skoupidi
cc782bfea2 validator: chore format comments to match style 2026-02-11 16:01:14 +02:00
skoupidi
fb11efb45d darkfid/task/unknown_proposal: retrieve all proposals before locking validator state to build the peer fork 2026-02-11 15:25:19 +02:00
skoupidi
caca412031 validator: use a single MAX_32_BYTES constant 2026-02-11 15:20:38 +02:00
skoupidi
89b4dbe4a1 validator/verification: verify block timestamp based on sync state 2026-02-11 15:18:44 +02:00
skoupidi
b4fa82cb3f validator/utils: fixed missmatched returned value in median() 2026-02-11 15:06:41 +02:00
skoupidi
de5b7699c6 validator/consensus: ensure no other competing fork exists during confirmation 2026-02-11 15:06:05 +02:00
skoupidi
e4ce356952 validator/consensus: check fork proposals are after the requested tip height before appending them in get_fork_proposals_after 2026-02-11 15:05:15 +02:00
skoupidi
8753c20c1b validator/pow: don't blindly unwrap next darkfi rx key 2026-02-11 15:04:26 +02:00
skoupidi
08adccb16c validator/consensus: minor clarification comment added in reset_forks() 2026-02-11 15:02:22 +02:00
skoupidi
eb7ee7dddc validator/consensus: bound in-memory forks with a configurable param 2026-02-11 15:01:08 +02:00
skoupidi
1da6680ece README: temp use working commit instead of tag till next one is up in build instructions 2026-02-10 18:19:21 +02:00
x
7c5390c899 contract/money: Implement Money::BurnV1 function
This allows provable coin burning without requiring outputs.
2026-02-10 15:03:25 +00:00
x
4607434a13 Use simplified harness API for tests 2026-02-10 14:46:27 +00:00
x
a173a5c412 contract/dao: Use simplified harness API for tests 2026-02-10 14:41:55 +00:00
x
348ea7fff1 contract/money: Use simplified harness API for tests 2026-02-10 14:41:55 +00:00
x
c17f2a650d contract/test-harness: Deduplicate Nullifier and Coin handling code 2026-02-10 14:41:55 +00:00
epiphany
6ff035e8f7 drk: add pretty_tx() for the inspect command 2026-02-09 18:16:45 +02:00
skoupidi
7181db089e chore: updated sled-overlay to new version 2026-02-09 18:16:37 +02:00
x
06cf1be98d validator: Use saturating arithmetic 2026-02-09 12:37:11 +00:00
skoupidi
fc84d67174 darkfid/task/sync: fixed resync bug after node dc 2026-02-04 12:50:35 +02:00
skoupidi
142ac78c38 validator/consensus: log height when appending proposal 2026-02-03 20:53:54 +02:00
skoupidi
3bbe1166fa chore: updated sled-overlay to new version 2026-02-03 20:53:26 +02:00
oars
547e9d6e7d contrib/localnet/darkfid-small/reorg-test: wait for 20 blocks to be mined before starting the test 2026-02-03 20:51:14 +02:00
oars
f5a3eb84c0 bin/lilith: don't exit loop when whitelist_host and greylist_host methods return error 2026-02-03 20:49:59 +02:00
oars
bc79cb5021 net/session/refine_session: replace unwrap with error handling 2026-02-03 20:49:59 +02:00
x
1c806010c9 chore: Fix uncaught code formatting 2026-02-02 23:08:45 +00:00
x
7ab468c5a0 explorer: Make darkfid RPC connections retry, improve sync
This will allow darkfid restarts, where explorer can still
survive and stay on.

Because of this, added a a code path when processing incoming
blocks that should make the explorer sync blocks if it missed
any in the meantime.
2026-02-02 23:04:50 +00:00
skoupidi
f382141d5c darkfid/task/unknown_proposal: update peer fork diffs to represent forward-only ones 2026-02-02 23:21:00 +02:00
skoupidi
cb07f10595 chore: updated sled-overlay to new version 2026-02-02 23:20:13 +02:00
x
43d6f61687 explorer: Add manual revert support and fix reorg logic 2026-02-02 16:33:33 +00:00
skoupidi
67a8cb3833 chore: updated sled-overlay to new version 2026-02-02 17:55:35 +02:00
skoupidi
e36a6d635b validator/randomx_factory: simplified factory api to not use locks 2026-02-01 21:35:38 +02:00
skoupidi
94c66b042a darkfid/registry: guard state behind a single lock 2026-02-01 21:28:24 +02:00
skoupidi
ecefad8ac0 validator: guard everything behind a single lock 2026-02-01 19:46:43 +02:00
skoupidi
b5d13fb163 darkfid/task/unknown_proposal: refresh miner registry after a reorg 2026-01-30 19:31:59 +02:00
skoupidi
c277897589 darkfid/task/unknown_proposal: include trigger proposal in the headers hash sequence rank calculation 2026-01-30 18:21:02 +02:00
skoupidi
bd68f9238b darkfid/task/unknown_proposal: full refactor for cleaner code and usage of append lock while generating the reorg fork 2026-01-30 17:10:51 +02:00
skoupidi
f720977642 contrib/localnet/darkfid-small: use daemons folders for their logs 2026-01-30 17:08:31 +02:00
skoupidi
efed067ba1 contrib/localnet/darkfid-small/reorg-test: minor cleanup 2026-01-29 18:39:50 +02:00