Commit Graph

8763 Commits

Author SHA1 Message Date
darkfi
751037d44f wallet: migrate widgets to src/ui/ 2024-06-20 11:27:45 +02:00
darkfi
9565b6a390 wallet: split event streams into separate publishers to avoid waking sleeping tasks uncessarily 2024-06-20 11:10:53 +02:00
darkfi
f4f7a258e9 wallet: make some common gadgets useful and clean up the code 2024-06-20 10:52:56 +02:00
skoupidi
8c33d59f40 chore: updated all repo references to codeberg 2024-06-19 20:51:25 +03:00
draoi
138e51aea6 README: fix grammar 2024-06-19 19:26:48 +02:00
draoi
57499cff8b net/test: capture panics + select random ports to connect to
Selecting a random port allows us to run the test on the same machine
concurrently without conflicts.

Note that selecting a port for the seed node and seed sync session is
fairly safe, since we immediately start the node after the port is
selected, meaning most of the time the same port will not come up as
available if another test is being run concurrently.

However there is slightly less certainty with the manual session, since
we first generate a list of available ports, and then start them in a
loop, creating a slight delay and increasing the probability that
another test, run concurrently, could select one of those ports as
available.
2024-06-19 19:22:19 +02:00
skoupidi
2e970d4505 script/research/gg: updated to latest darkfi code 2024-06-19 20:07:50 +03:00
skoupidi
5313217f9f contract/money/client/genesis_mint: minor cleanup 2024-06-19 20:07:25 +03:00
skoupidi
79f9cd24c5 darkfid: optional bootstrap timestamp added 2024-06-19 17:37:02 +03:00
skoupidi
934d8f1a42 validator: check block timestamp is after genesis 2024-06-19 17:37:02 +03:00
darkfi
db2eeafd08 README: add a stronger lede for the project 2024-06-19 15:32:31 +02:00
skoupidi
82a56cd2c2 validator: properly handle gas limit checks 2024-06-19 12:00:21 +03:00
darkfi
c85e8e3f28 wallet: fix mesh matrix transform calc 2024-06-19 10:21:49 +02:00
dasman
b4bf8e2740 darkirc: fix history replay for DMs 2024-06-19 04:20:14 +03:00
dasman
8075272283 doc: update darkirc android instructions 2024-06-18 19:32:07 +03:00
skoupidi
0890ebf458 script/research/blockchain-explorer/site: rest pages added, cleaned up code, licencing added 2024-06-18 14:19:40 +03:00
darkfi
cfd1e65c39 wallet: live resizing of layers 2024-06-18 12:55:17 +02:00
darkfi
8f88b3a77f wallet: UI drawing responds to property changes 2024-06-17 20:32:23 +02:00
skoupidi
db7f41ead6 script/research/blockchain-explorer: basic web front-end added 2024-06-17 17:58:57 +03:00
skoupidi
c680467899 script/research/blockchain-explorer: added base statistics calls 2024-06-15 15:26:53 +03:00
skoupidi
968f0c7202 script/research/blockchain-explorer: added base transactions calls 2024-06-15 14:26:33 +03:00
skoupidi
3dedf1e30e script/research/blockchain-explorer: added base blocks calls 2024-06-15 13:27:58 +03:00
darkfi
5e1c43af36 wallet: improve RenderApi. now each call is paired with a unique u64 ID which is used to modify the call without knowing its location in the draw tree. 2024-06-15 12:16:08 +02:00
darkfi
f6dc235f93 wallet: construct app and carefully manage resources 2024-06-15 07:29:20 +02:00
skoupidi
2438bed158 script/research/blockchain-explorer: converted into a history providing daemon 2024-06-14 20:21:57 +03:00
skoupidi
1f4d72d3ad drk: restructer as a library 2024-06-14 15:05:10 +03:00
skoupidi
90b024f5fc darkfid/tests: use diff p2p ports on nodes of each test so they communicate with the ones expected when running concurently 2024-06-13 16:59:15 +03:00
kalm
cff9d0e7f5 validator/consensus: gas-based limit for unproposed transactions retrieval
Gas-based limit implementation to retrieve unproposed transactions. The limit is maintained by the constant 'GAS_LIMIT_UNPROPOSED_TXS', currently calculated as the product of the average total gas used and a gas limit multiplier equivalent to the existing TX_CAP value (i.e, 50).

The average total gas was obtained through analysis of empirical transaction test data, using a gas analysis tool.

The aim of this approach is to allow a gradual and controlled transition towards an optimal gas-based system. This minimizes potential adverse effects brought by changes to TX_CAP's implementation and provides the benefits of using gas to limit the number of txs received. This implementation will be fine-tuned until the discovery of the most efficient formula for determining the unproposed transactions' gas limit.

Tests have been added to verify the implementation's correctness by running transactions against it. To run the tests, run the following command from the bin/darkfid directory:

cargo test --release --bin darkfid tests::unproposed_txs
2024-06-13 05:27:05 -07:00
dasman
5399a54966 doc: bring back darkirc installation for android instructions 2024-06-13 14:14:14 +03:00
dasman
25c43d7187 remove nym page, and add a little note about its status 2024-06-13 14:06:30 +03:00
dasman
d040ef7b07 remove tag v0.4.1 from main README 2024-06-13 13:39:35 +03:00
dasman
cc75c50175 doc: add a note about rehash command in darkirc's private messages page 2024-06-13 13:38:11 +03:00
darkfi
a3db035ffa wallet: properly handle app cleanup (accidental cargo fmt so just check main.rs) 2024-06-13 11:46:07 +02:00
darkfi
6d295ab1ca wallet: migrate to using async slots/signals and zmq debug backend 2024-06-12 16:47:04 +02:00
darkfi
4b639e958a Cargo: remove crossbeam from dev-dependencies and comment out its benchmark 2024-06-12 13:58:54 +02:00
darkfi
927dfa7270 wallet: replace crossbeam::SkipMap<..> with Mutex<HashMap<...>> 2024-06-12 13:47:10 +02:00
darkfi
4a77e172c2 bench: crossbeam benchmark add reads 2024-06-12 13:38:27 +02:00
darkfi
9a76aa26e7 bench: crossbeam benchmark use the same group so we can directly compare lockless vs mutex 2024-06-12 13:03:07 +02:00
darkfi
ba07b8f89f bench: cargo fmt 2024-06-12 12:50:44 +02:00
darkfi
eecadc3482 bench: improve crossbeam benchmark to be more accurate 2024-06-12 12:46:30 +02:00
darkfi
2dc0b414bd bench: compare crossbeam SkipMap with Mutex<HashMap<...>> 2024-06-12 12:32:31 +02:00
skoupidi
37a864c89f darkfid/tests/harness: init an empty fork when generating node 2024-06-12 13:29:27 +03:00
darkfi
08b134d802 wallet: use pubsub to subscribe to events in main async draw() fn 2024-06-12 11:31:25 +02:00
darkfi
0d478f0721 wallet: begin making async version of gfx subsystem 2024-06-12 11:11:01 +02:00
dasman
9ad05642a3 example/p2pdebug: fix fromatting 2024-06-12 02:46:16 +03:00
dasman
823db436e4 replace last couple of ircd words 2024-06-12 02:40:37 +03:00
dasman
e87748f9c9 darkirc: rename pubkey recovery argument 2024-06-12 02:40:03 +03:00
dasman
8fcdd85673 doc: update darkirc private messages section 2024-06-12 02:29:09 +03:00
dasman
2bdb1b8cf9 remove irrelevant ircd scripts 2024-06-12 02:27:06 +03:00
skoupidi
c01d121a7a darkfid/task: generate an empty fork on consensus init, before any other task is triggered 2024-06-11 20:08:33 +03:00