Commit Graph

7269 Commits

Author SHA1 Message Date
x
c227aecd02 mv dev/development.md dev/dev.md 2023-11-20 19:26:24 +01:00
x
9d1fe8ee91 book/contribute: claim some tasks 2023-11-20 19:20:06 +01:00
x
2e21eeb15b mv architecture.md arch.md 2023-11-20 19:07:00 +01:00
parazyd
21897edc26 doc: Add additional mainnet tasks 2023-11-20 18:58:30 +01:00
parazyd
4f191167e5 doc: Mainnet roadmap 2023-11-20 18:12:34 +01:00
parazyd
dd3c39f22b Makefile: Add zkas as a darkirc build dependency 2023-11-20 13:19:06 +01:00
parazyd
9066e55f00 rpc: Read byte-by-byte from stream and properly handle lines.
This wraps the reader side into a BufReader and read_from_stream now
reads byte-by-byte from the stream using an intermediate buffer.
The BufReader doc[0] claims that using this for such reading operation
is advantageous and useful for small and repeated reads to a socket.

read_from_stream stops reading after reaching LF, and optionally pops
CR from the back of the buffer to handle CRLF endings.

[0] https://docs.rs/smol/latest/smol/io/struct.BufReader.html
2023-11-20 11:36:43 +01:00
parazyd
26ee5897cf rpc: Use CRLF for line endings in the protocol.
Reading still supports LF-only, but generally the protocol should use CRLF.
2023-11-20 10:21:48 +01:00
x
d7c3ac140e fix money_xfer pow-reward unit test 2023-11-20 10:10:33 +01:00
parazyd
cbd120da96 darkirc: Preliminary RLN code layout 2023-11-20 09:50:19 +01:00
x
dbb621fa9e fix txs_verification unit test 2023-11-19 19:54:12 +01:00
x
89da561315 fix genesis_mint unit test 2023-11-19 18:21:03 +01:00
parazyd
6933f333cc rpc/server: Implement stop-gap hack for handling some XMRig requests. 2023-11-19 16:17:50 +01:00
x
ca2ebcf9fa mint-pay-swap: fix broken unit test 2023-11-19 15:57:03 +01:00
parazyd
fdb84606ca mmproxy: Duck hunting 2023-11-19 14:15:36 +01:00
parazyd
579a45cbb5 mmproxy: Add more helpful log messages 2023-11-19 14:04:19 +01:00
parazyd
b8b02aee80 mmproxy/stratum: Mining target calculation 2023-11-19 11:21:39 +01:00
x
fd934a8e3a introduce CoinParams to money_xfer 2023-11-19 08:38:51 +01:00
x
cc9930b53b fix compile error in faucetd 2023-11-19 06:21:41 +01:00
Dastan-glitch
27531c487b bin/tau: show refids as well when listing tasks 2023-11-19 04:45:53 +03:00
Dastan-glitch
c793cfdfd5 bin/darkirc: [taubot] replace id with ref_id 2023-11-19 04:25:28 +03:00
x
7598243783 split money client transfer_v1.rs into submodules: make_transfer_call(), builder and proofs. 2023-11-18 15:43:21 +01:00
x
929b6d0833 improve transfer_v1, simplify the default builder, and provide a lower level API for constructing more complex calls 2023-11-18 14:48:15 +01:00
ertosns
c54cc71527 [research/stable] minor edit 2023-11-18 13:54:55 +02:00
ertosns
a5d246d627 [research/stable] add section on blind auctions 2023-11-18 13:49:38 +02:00
dark-john
4da0207bbd More explicit error message for users who have failed to generate their own key pair (#235)
* More explicit error message for users who have failed to generate their own key pair.

* Tweaked error message.

---------

Co-authored-by: dark-john <dark-john@fake-email.com>
2023-11-18 08:39:28 +00:00
eyeHORUSdotETH
d56829d764 Update philosophy.md
- fixes typos
- fixes misspellings 
- removes some commas
- adds some oxford commas
2023-11-18 08:38:55 +00:00
ertosns
4f4ec89f1f [script/research/stable] dark stable (Nun) 2023-11-18 01:35:47 +02:00
ertosns
b362aa2fd3 [doc/dao/vote] minor fix of latex 2023-11-18 01:35:47 +02:00
y
117b4c6750 [eventgraph/util] formatting 2023-11-17 15:55:23 -05:00
y
d8e957788b [net] Fix issue Dag prune issue
There was an error in calculating the timestamp for the next "rotation",
i.e. when the Dag should prune.
This commit fixes:
- An underflow when calculating the sleep time for the Dag pruning
  process
- An off-by-one error that caused next_rotation_timestamp to give a
  timestamp in the past

Unit tests have also been added to prevent the above problems from
occurring again. They should be general enough to catch rotation periods
that are more complex than a period of `1`, which is what we are
currently using
2023-11-17 14:55:53 -05:00
y
bf5d77c31f [net] Modify Event pruning debugging
Change approach to dynamically calculate Genesis rather than storing it
in the EventGraph struct.

Add error-level debug messages in the case when a peer requests an
outdated Event and the node responds without an error. This indicates
that our Dag contains outdated events, indicating that the previous
prune failed.
2023-11-17 11:27:44 -05:00
y
c7727c8633 [net] Add debug messages when receiving old Events
Added debug statements when an EventPut occurs for an event with
a timestamp that is older than the Genesis event of the EventGraph.

Ideally this shouldn't happen but could theoretically occur if a node
does not properly prune its DAG.

In order to do this, `genesis` and `days_rotation` were added as fields
to EventGraph and 'getter' methods were added to retrieve these values.
2023-11-17 10:19:00 -05:00
aggstam
0708f7d066 contrib/docker: musl static docker builded added 2023-11-17 16:37:24 +02:00
x
b855d33d9f money_transfer: split coin selection into a separate function 2023-11-17 11:52:17 +01:00
y
521bc801fa [net] tor-dialer: revert to panic and document why 2023-11-16 15:59:57 -05:00
y
e4eb6754dd [net] Tor dialers: return error instead of panic
Refactor the Tor Dialers to return an error instead of panicking via
unwrap(). In any case, we don't expect this to happen because new
dialers are instantiated using a macro that ensures that endpoints have
valid hosts and ports.
2023-11-16 13:42:21 -05:00
y
573d283c63 update arti to v0.11.0 2023-11-16 10:35:31 -05:00
parazyd
375a8b41ed chore: Update create dependencies 2023-11-16 15:25:38 +01:00
parazyd
648989e36c darkirc: Update eventgraph API 2023-11-16 15:25:38 +01:00
parazyd
e12ea8d31b tau: Update eventgraph API 2023-11-16 15:25:38 +01:00
parazyd
5580559707 genev: Update eventgraph API 2023-11-16 15:25:38 +01:00
parazyd
915520ea99 eventgraph: Use atomic database operations.
Additionally this changes the dag_insert API to take a slice of events.
2023-11-16 15:25:38 +01:00
parazyd
cf4f85f7e9 eventgraph: Abstract dag_prune into a separate reusable function and make it atomic. 2023-11-16 15:25:38 +01:00
parazyd
25d919ea91 Makefile: Pass target variables to inner darkirc Makefile.
This should be done for other bins as well when not lazy.
2023-11-16 15:25:38 +01:00
lunar-mining
1d5f72739f book: add tor-darkirc tutorial to SUMMARY 2023-11-16 13:55:08 +01:00
parazyd
3b21fcaa7b darkirc: Abstract seen_db handling into separate functions
This will initialize the sled tree on-demand. Additionally, we make the
handling more robust and will disconnect the client on any potential sled
errors that might happen.

We also make mark_seen() write atomically into the sled tree via sled::Batch.
2023-11-16 13:11:21 +01:00
x
92c4f2760e contribute doc: add a few TODOs 2023-11-16 11:30:14 +01:00
x
959b9f0871 contribute doc: add refs for p2p resource manager and conn algo to find more info. 2023-11-16 11:03:59 +01:00
x
a9bb2146b1 contribute doc: fix minor formatting error 2023-11-16 10:58:17 +01:00