Commit Graph

10069 Commits

Author SHA1 Message Date
parazyd
2e2de47c69 v0.5.0 release v0.5.0 2025-06-06 13:50:10 +02:00
parazyd
beb8f02c9b serial: Bump version to 0.5.0 2025-06-06 13:28:11 +02:00
parazyd
87df23be1a doc: Formatting 2025-06-06 13:20:50 +02:00
parazyd
6ce68aca16 research: Implement mnemonic (seed phrases) for secret keys 2025-06-05 16:45:22 +02:00
darkfi
b1d36ebccf app/gfx: bugfix always epoch for delete of buffer must match creation epoch 2025-05-31 11:09:13 +02:00
skoupidi
b4f448fa20 darkfid/task/unknown_proposal: reset consensus pow module on reorg 2025-05-27 15:41:25 +03:00
kalm
5cd8c6c035 explorer/site: run testnet and mainnet on WSGI server
This commit updates the explorer web app to run on a Gunicorn-based WSGI server for testnet and mainnet rather than the built-in dev server. In doing so, it provides for improved scalability, reliability, integration with Nginx, and flexible run configuration.

We’ve introduced a dedicated configuration file (gunicorn_config.py) allowing control over the number of worker processes and threads. By adjusting these values, we can handle more simultaneous requests, fine-tune performance based on CPU resources, and tweak other operational parameters to suit deployment needs.

Update Summary:
- Added gunicorn_config.py to configure bind address, workers, threads, pidfile, and logs
- Updated the testnet and mainnet ports to run on 8000 instead of the 5000 dev port
- Created wsgi.py to load and expose the Flask app via `create_app()`
- Updated requirements.txt to include Gunicorn dependency
- Modified makefile start-% target to start with Gunicorn for testnet/mainnet instead of the development server
- Adjusted stop task to stop Gunicorn server when stopping the explorer
- We updated the requirements.txt install to run quietly
- Updated Makefile to export LOG_HOME so it can be accessed by gunicorn_config.py
2025-05-26 15:34:10 -07:00
p1r0
fccdca721a script/ping: added Dialer initialization missing argument 2025-05-26 23:51:32 +03:00
skoupidi
bc827fcc57 minerd: fill stop signal channel only if its empty on stop 2025-05-26 18:14:13 +03:00
skoupidi
7d95191af8 darkfid/main: removed validate short flag 2025-05-26 17:24:59 +03:00
skoupidi
4e817e91dd minerd: wait workers to terminate before clearing the stop signal channel 2025-05-26 12:50:41 +03:00
kalm
15fb9fd8ea explorerd/service/blocks: handle duplicate PoW coin errors after reorgs
This update introduces code to ensure blocks with PoW rewards containing coins already applied to the contract state prior to a reorg are synced. Additionally, it brings awareness to the need for rolling back the contract state to a specific height during reorgs.
2025-05-25 22:51:44 -07:00
kalm
18c2de1ca5 explorerd/service/blocks: fix reset_to_height get_by_range query and enhance debug logging
This fix adjusts the range query in `reset_to_height` to start from `reset_height + 1`, ensuring transactions from `reset_height` are excluded when deleting reset block transactions.

Summary of changes:
- Updated the `get_by_range` query to exclude `reset_height` transactions
- Enhanced debug statements to validate transaction deletions and associated block heights during reorgs
2025-05-25 21:26:15 -07:00
skoupidi
92be426e25 darkfid/proto/protocol_proposal: fixed tasks order so they don't deadlock on stop 2025-05-25 20:49:38 +03:00
skoupidi
dcbfe9b201 darkfid/task/unknown_proposal: refactored to act as a queue processing one proposal at a time 2025-05-25 19:46:41 +03:00
skoupidi
a783ae6cf3 net/channel: changed outgoing metering log target to debug to reduce log bloat 2025-05-25 19:46:41 +03:00
epiphany
7f4d168884 fud: add lib target, cleanups 2025-05-25 15:10:40 +02:00
kalm
5a3eb06497 block_store: include end value in get_order_by_range queries
Updated `get_order_by_range` to use an inclusive range (`..=`), ensuring the `end` value is part of the result.
2025-05-25 04:03:14 -07:00
kalm
69854c6c3f explorerd/store/metrics: change logs informing insertion of metrics to debug
This commit replaces `info!` log statements with `debug!` for messages informing about the insertion of metrics in the MetricsStore.
2025-05-25 02:59:29 -07:00
kalm
dd94f6de93 explorerd: Add support for VERBOSE variable in makefile start-% targets
This commit adds support for the `$(VERBOSE)` variable in the `start-%` targets, allowing changing verbosity levels when starting the explorer node environment. The help message has also been updated to include more details.
2025-05-25 02:46:32 -07:00
kalm
3d01b5696d explorerd/main: enhance block subscription with retry mechanism when out of sync
This commit enhances subscription initialization to handle scenarios where the explorer database is out of sync with darkfid.

Summary of changes:
- Added "Blockchain not fully synced" error check during block subscription initialization
- Implemented a retry mechanism to resync blocks and reattempt the subscription process
2025-05-25 02:14:29 -07:00
skoupidi
26f2198e96 darkfid: aux state management actions added 2025-05-23 17:33:03 +03:00
parazyd
3051834282 doc: Add WIP merge mining page 2025-05-22 15:31:27 +02:00
darkfi
31d679b894 app: in GraphicsEventPublisher replace use of Publisher with faster/simpler EventChannel 2025-05-22 14:00:49 +02:00
darkfi
02f121f517 Makefile: remove failing clean on mmproxy 2025-05-22 11:32:36 +02:00
skoupidi
9310e55400 darkfid/task/sync: fixed empty tip check 2025-05-21 23:50:04 +03:00
skoupidi
2b72f9d93a darkfid: hardenned syncing of stale forks 2025-05-21 20:27:47 +03:00
parazyd
46d815ace0 chore: Update crate deps and freeze RandomX git rev 2025-05-21 15:01:54 +02:00
darkfi
c682887f7e app: improve selection activate for chatedit 2025-05-21 13:14:05 +02:00
kalm
7e28c41aac explorerd: adjust log search for darkfid startup sync confirmation
This commit modifies the `wait_for_darkfid_startup` target in the Makefile to search for a later log message during darkfid startup. Results from testnet testing revealed that additional synchronization occurs before darkfid starts, necessitating a longer wait time is needed before starting explorerd.
2025-05-21 00:26:56 -07:00
skoupidi
9d36912160 darkfid/tests/unproposed_txs: ducktaped the test since it needs bigger txs 2025-05-20 19:08:48 +03:00
skoupidi
5c3e9d65a6 validator/consensus: define max block gas limit based on actual upper limits 2025-05-20 18:15:35 +03:00
skoupidi
e5dd2dddb5 validator/consensus: revert to overlay checkpoint when a transaction exceeds configured limit 2025-05-20 16:00:06 +03:00
skoupidi
b89267bbc7 darkfid/rpc: fixed erroneous call 2025-05-20 13:38:16 +03:00
kalm
fc79636cda explorerd/service: removed ducktape
This commit removes temp workaround while code was being updated to apply state changes to WASM runtime during block sync.
2025-05-19 00:50:52 -07:00
kalm
f03f5977b6 explorerd/service: enhance put_block and calculate_tx_gas_data to apply contract state changes, cleanup
This commit updates the `calculate_tx_gas_data` function to apply state changes during contract execution, enabling contract data availability for subsequent contract calls during block sync. Additionally, `put_block` was modified to apply PoW reward transactions to the WASM runtime, ensuring their effects are visible to transaction runtimes used for fee calculations where applicable.

Minor cleanup was performed.
2025-05-19 00:02:56 -07:00
dasman
8723ae78d9 doc/testnet/dao: minor typo fixes 2025-05-19 04:43:08 +03:00
skoupidi
1508921109 darkfid: updated user_data comment to be more explicit 2025-05-18 21:55:49 +03:00
epiphany
432828c006 fu: add ls and verify commands, and update other commands to match fud events 2025-05-18 19:17:53 +02:00
epiphany
55e08ae605 fud, geode: chunks are written and fetched from the full file 2025-05-18 19:14:38 +02:00
skoupidi
a6fb5f8852 explorer/explorerd/service/transactions: duck taping until refactor 2025-05-18 14:37:09 +03:00
skoupidi
61c4b831e3 chore: updated sled-overlay to new version 2025-05-17 19:10:01 +03:00
skoupidi
e21d7ace07 doc/testnet/token: typos 2025-05-17 13:44:13 +03:00
skoupidi
8e6507f792 doc/testnet/dao: simplyfied outputs visualization 2025-05-16 23:41:24 +03:00
skoupidi
a270f49066 (WIP) doc/testnet/dao: simplyfied outputs visualization 2025-05-16 22:12:21 +03:00
skoupidi
ea7d9cb464 drk/dao: fixed daos and proposals trees updating 2025-05-16 21:48:34 +03:00
skoupidi
7a7fea2565 (WIP) doc/testnet/dao: simplyfied outputs visualization 2025-05-16 21:05:15 +03:00
skoupidi
4bbb88f8dd doc/testnet/atomic-swap: simplyfied outputs visualization 2025-05-16 19:46:23 +03:00
skoupidi
5d49f0a415 doc/testnet/payment: simplyfied outputs visualization 2025-05-16 19:19:04 +03:00
skoupidi
0a1a9e6b54 doc/testnet/token: simplyfied outputs visualization 2025-05-16 18:40:48 +03:00