Commit Graph

8502 Commits

Author SHA1 Message Date
skoupidi
080417bb3f chore: replaced all MerkleTree::new(100) with MerkleTree::new(1) for consistency 2024-04-27 16:02:36 +03:00
skoupidi
9178923c9e darkfid: gracefully handle everything in live loops 2024-04-27 15:45:40 +03:00
skoupidi
80044e306f darkfid: fully configurable fees verification 2024-04-27 15:09:37 +03:00
draoi
f60a1983bc doc: add darkfi p2p resource manager notes to arch/p2p-network.md 2024-04-25 08:14:52 +02:00
skoupidi
ca5df82a72 darkfid: apply blocks with minimal verifications when using sync checkpoint 2024-04-24 21:34:34 +03:00
draoi
ea9044216d doc: add useful attack definition to arch/p2p-network.md
also delete no longer relevant comment
2024-04-24 08:57:30 +02:00
skoupidi
a5b9706829 darkfid: properly handle the garbage collection task 2024-04-24 01:15:40 +03:00
skoupidi
ad7f835d50 darkfid: pending txs garbage collection added 2024-04-23 17:49:02 +03:00
skoupidi
c208ba4442 validator: better erroneous and unreferenced penging txs handling 2024-04-23 14:52:49 +03:00
zero
e73aa009fa doc: wallet functionality 2024-04-23 11:31:19 +02:00
skoupidi
ee2859554a darkfid: optional checkpoint usage during syncing added 2024-04-22 21:14:56 +03:00
draoi
7085ac34b1 doc: add libp2p resource manager notes to arch/p2p-network.md 2024-04-22 16:01:46 +02:00
dasman
f270278588 bin/deg: fix identation issue for larger layer numbers 2024-04-22 16:50:18 +03:00
skoupidi
39bfc94d39 darkfid: sync cleanup 2024-04-22 15:17:31 +03:00
dasman
58b14d7c9d bin/deg: show first 10 chars of event's hash in main view 2024-04-20 16:18:34 +03:00
draoi
7528147b6c message: extract the length of the packet into a buffer, then deserialize
this protects against hostile nodes from sending giant messages and
eating up our resources in trying to decode them. using `stream.take()`,
we only read as far as the reported length.
2024-04-20 09:24:58 +02:00
dasman
5906da4382 bin/deg: add parents to events details 2024-04-20 00:05:59 +03:00
dasman
8ec39f8368 bin/deg: add footer to details view 2024-04-20 00:02:30 +03:00
dasman
528e03302a bin/deg: remove JsonRPC class to actually use src/rpc.py and handle its connection errors 2024-04-20 00:01:09 +03:00
dasman
9a0d582dca bin/deg: rename deg2 to deg 2024-04-19 23:23:22 +03:00
dasman
851ad0bfe2 bin/deg: use rpc.py for RPC connections 2024-04-19 23:19:08 +03:00
dasman
cc01c7767d bin/deg: remove unused code 2024-04-19 23:17:42 +03:00
dasman
bfb2c01905 bin/darkirc: use none-default ports in test script 2024-04-19 03:51:33 +03:00
dasman
df6a99ba9e bin/deg2: added graph column showing a minimized plot of the event graph 2024-04-19 03:33:42 +03:00
skoupidi
12efdd87f3 darkfid: use proposals/consensus logic while syncing
Additionally, performed some cleanup on validator code and handled cleaning up fork mempool when finalizing a block
2024-04-18 18:43:57 +03:00
parazyd
dd3f0583ce net/tests: Fix license header 2024-04-18 10:37:59 +02:00
draoi
88f4d67b47 doc: upgrade arch/p2p-network.md 2024-04-18 08:41:03 +02:00
parazyd
bdb24d3078 tau: Rename main.py to tau 2024-04-17 20:11:47 +02:00
skoupidi
40739693a1 darkfid: persist sync headers in a sled tree + some minor beautifications 2024-04-17 17:42:41 +03:00
skoupidi
07e7252901 darkfid: sync logic changed
Currently we used forward block syncing, while with this changes we do two step backwards header sync and then forward block sync using already known headers. This enables the node to know in advance the tip of the peers they will sync from
2024-04-16 18:36:56 +03:00
draoi
58db8fe588 session: don't add manual peers to hostlist
By extension, don't share manual peers with other nodes on the network.

This commit also updates the net integration test.
2024-04-15 12:20:35 +02:00
draoi
ec2f74fdaa manual_session: connection attempt now loops forever
previously we would try to connect Settings::manual_attempt_limit times
and exit if we fail on all attempts.

However, Manual session should instead just loop forever. It's not
intended for general users, but is rather a focused session for spinning
up clusters of nodes for development/ testing purposes.
2024-04-15 12:20:35 +02:00
parazyd
dc2dbec0d3 doc/dep: Add DEP-0004 2024-04-15 10:57:51 +02:00
draoi
f46e6abe94 protocol_address: add upper bound to transport requests from other peers 2024-04-15 09:17:55 +02:00
skoupidi
ee6f54c99e chore: use specific working nightly version 2024-04-13 16:22:24 +03:00
draoi
d3c1000093 doc: apply Detailed Overview patch to start-here.md 2024-04-13 14:52:58 +02:00
draoi
6c0b1faf98 net: add manual session to p2p integration test 2024-04-13 13:46:55 +02:00
draoi
72c22d0124 doc: change protocol_version TODO to NOTE 2024-04-13 13:46:55 +02:00
draoi
1dcd31ee3a chore: update hosts.rs TODOs 2024-04-13 13:46:55 +02:00
draoi
efe2d57c4e net-test: add assert 2024-04-13 13:46:55 +02:00
draoi
e3c69b0fcc chore: delete unused code comment from message_subscriber.rs 2024-04-13 13:46:55 +02:00
draoi
9aea678125 outbound_session: replace TODO with NOTE 2024-04-13 13:46:55 +02:00
draoi
c0f9920d0a doc: remove deceptive comment on session/mod.rs 2024-04-13 13:46:55 +02:00
draoi
92cbca047e outbound_session: just do seed next time if peer discovery waiting for addrs times out 2024-04-13 13:46:55 +02:00
draoi
740a539bfd channel+protocol_version: add Option<VersionMessage> into Channel
When we receive a version message from a node we are connected
to, update to Some(VersionMessage).
2024-04-13 13:46:55 +02:00
skoupidi
fa08a4aeae drk: use (de)serialize_async everywhere 2024-04-12 15:48:20 +03:00
skoupidi
d1c11b7cf6 drk: properly scan blocks based on tx call order 2024-04-12 15:27:58 +03:00
parazyd
aa8fb77538 drk/deploy: Add contract lock tx 2024-04-12 08:56:49 +02:00
draoi
61e51b33d0 lilith+net: move whitelist_refinery back into lilith + create new public functions
we expose some methods that allow uses of the P2P interface, such as
lilith, to interact with the hostlist in a safe way.
2024-04-11 11:30:42 +02:00
draoi
7ad0792976 net: make self_handshake_interval a configurable Setting 2024-04-11 11:30:42 +02:00