Commit Graph

7967 Commits

Author SHA1 Message Date
zero
5876e97d20 spec: update for changes to money coin attributes 2024-01-30 12:28:57 +01:00
zero
85cbf1f152 drk: update for changes to serial renamed to coin_blind 2024-01-30 12:22:07 +01:00
zero
0738b42b1c money: change the coin_attribute serial to coin_blind. We no longer use the serial, and its sole purpose is to blind the coin. Also move it to the end, consistent with all bullas and commits used in darkfi core. 2024-01-30 12:12:56 +01:00
zero
32bf65a1d8 DEP 0003: Token Mint Authorization 2024-01-30 10:39:12 +01:00
skoupidi
4648b8fb26 darkfid/tests: disable pos test 2024-01-29 22:20:38 +02:00
skoupidi
c0f1038277 doc/arch: removed consensus contract related stuff 2024-01-29 21:54:46 +02:00
skoupidi
025912d245 doc/Makefile: use correct darkfid rpc files 2024-01-29 21:49:43 +02:00
skoupidi
16103b84a7 Night of the living dead 2024-01-29 21:41:01 +02:00
zero
92387af2ab book: remove section on parallelized tx verif 2024-01-29 18:01:35 +01:00
draoi
195dfb6935 chore: cargo fmt 2024-01-29 15:31:37 +01:00
draoi
4cb76df1f0 update Cargo.lock 2024-01-29 15:31:37 +01:00
draoi
e9e3bd41ca Revert "channel: safely shutdown the channel when an error is triggered"
This reverts commit 8a01a59b063b3d0dca1eae3963a83dcb52427487.

This commit was wrong because the channel gets shutdown after the receive loop returns Error::ChannelStopped in handle_stop()
2024-01-29 15:31:37 +01:00
draoi
ccf660b924 chore: fix comments and cleanup 2024-01-29 15:31:37 +01:00
draoi
2563c3995c acceptor: upgrade "reached incoming connection limit" to a warning 2024-01-29 15:31:37 +01:00
draoi
ae154de787 chore: fix typo 2024-01-29 15:31:37 +01:00
draoi
e631e8ce68 doc: minor tweak to channel.rs doc 2024-01-29 15:31:37 +01:00
draoi
a21def4f53 refinery: fix redundant channel.stop() call 2024-01-29 15:31:37 +01:00
draoi
589a847205 settings: change inbound_connections default to 10
Setting this to 0 disables inbound sessions by default, even if we have
configured a inbound address.

If we have a inbound address configured, it should be assumed we want to accept inbound sessions.
2024-01-29 15:31:37 +01:00
draoi
7959d9741c channel: safely shutdown the channel when an error is triggered 2024-01-29 15:31:37 +01:00
draoi
78964589ca inbound_session: activate subscriber before accepting inbound connections
InboundSession::start() must happen in this order:

* create the Acceptor
* activate acceptor subscriber
* finally we are ready to start accepting inbound connections.

Previously the flow was like this:

* create the acceptor
* starting accepting inbound connections
* activate the subscriber

This means that inbound connections would potentially be dropped in between
creating the acceptor and activating the subscriber. This is only
obvious in low latency conditions, like refinery::ping_node().
2024-01-29 15:31:37 +01:00
draoi
cf431cbd69 dchatd: downgrade version to match master 2024-01-29 15:31:37 +01:00
zero
43621729fe spec: money xfer params 2024-01-29 11:11:37 +01:00
draoi
deb784d68d channel: use convenience function 2024-01-27 17:46:48 +01:00
draoi
ffee76843a dchatd: bugfix
shutdown p2p network only after other tasks have been shutdown
2024-01-27 17:42:53 +01:00
draoi
1deb70efc5 doc: fix typo in services.md 2024-01-27 17:42:24 +01:00
draoi
5aa187913f refinery: bugfix
start the channel BEFORE calling .await on the handshake task. otherwise
the channel does not exist yet and the handshake will timeout.
2024-01-27 14:05:43 +01:00
draoi
cbfef54aab chore: remove artifact from protocol_version 2024-01-27 14:05:03 +01:00
skoupidi
a7120c6fca lilith: remove missleading todo
We can't configure multiple networks with same name in .toml files so they are already differentiated. Additionally, each one will use their configured version attribute as app network version.
2024-01-27 01:05:13 +02:00
skoupidi
9a2fad2c0f drk: replaced rest hardcoded balance base10 decimals with the const 2024-01-26 16:28:13 +02:00
draoi
cecf284cef net: create system::run_until_completion() to ensure ping_node() does not create zombie process
This commit refactors the ping_node method to use a system function
called run_until_completion(), which ensures a task will safely complete even
if it's parent task has been cancelled.

This happens in ping_node() in the case the handshake is ongoing but the
p2p network has been destroyed.

We also introduce a timeout for ping_node() to prevent
perform_handshake_protocols from running forever and blocking
channel.stop() from being safely invoked.
2024-01-26 11:10:44 +01:00
draoi
715f6c7a86 channel: fix incorrect API usage 2024-01-26 11:10:44 +01:00
draoi
d60bb8bf33 manual_session: bugfix
Push the tasks onto the vector of stoppable tasks before starting them
to avoid a possible race condition.
2024-01-26 11:10:44 +01:00
skoupidi
cd762c95e0 doc/Makefile: use RUST_TARGET in docs folder path 2024-01-25 23:08:03 +02:00
dasman
0567c219bd bin/darkirc: [commitbot] replace pusher name with committer's 2024-01-25 23:37:43 +03:00
skoupidi
9d9dd1590c net/hosts/store: chore clippy 2024-01-25 20:29:59 +02:00
skoupidi
0e400fb299 drk/Cargo.toml: missing darkfi feature added 2024-01-25 20:28:36 +02:00
draoi
a42fd04bee store: update test to use new flattened fetch_address logic 2024-01-25 18:30:00 +01:00
skoupidi
c3f84d3abb src/wallet: yeet 2024-01-25 19:06:37 +02:00
skoupidi
8c8db819f2 drk: script kiddies be gone 2024-01-25 18:55:47 +02:00
skoupidi
3062597fca drk is back in the menu boys 2024-01-25 18:52:03 +02:00
skoupidi
2f6bb5748f drk2: Dao functionality added 2024-01-25 18:44:38 +02:00
skoupidi
c04667a845 net/session/outbound_session::fetch_address(): simplyfied returns 2024-01-25 14:51:13 +02:00
draoi
3447394eda net: make fetch address logic less nested + fix bug
Previously when we called whitelist_fetch_[...](), it would call
greylist_fetch_[...]() inside that method if insufficient whitelist
entries were found.

This was confusing and non-intuitive.

This commit removes this nesting. Now we call
whitelist_fetch_[...] followed by greylist_fetch_[...] in ProtocolAddr
and OutboundSession explicitly.

This commit also fixes a bug in the refinery.
2024-01-25 13:30:24 +01:00
draoi
74f91dd3bc dchat: fix mistakes on default config 2024-01-25 13:22:11 +01:00
aggstam
6e7dc81704 chore: clippy 2024-01-24 17:57:46 +02:00
parazyd
b498847676 contract/money: Add missing error to the error enum 2024-01-24 16:26:14 +01:00
zero
d06cffd0f1 spec: add description of the group hash algo 2024-01-24 14:13:58 +01:00
zero
98fd142aa4 spec: elgamal enc, cleanup use of subscripts 2024-01-24 13:51:50 +01:00
parazyd
228aea9926 contract/fee: Enforce that fee_paid > 0 2024-01-24 13:11:56 +01:00
lunar-mining
354ef3270e store: reverse the order of hostlists
entries with the most recently seen timestamps should be at the top of
the list.
2024-01-24 12:47:36 +01:00