Commit Graph

252 Commits

Author SHA1 Message Date
parazyd
968550a680 util: Clippy lints 2023-07-08 21:19:27 +02:00
aggstam
77067ac615 util/cli: fmt 2023-07-08 19:05:33 +03:00
aggstam
5d63d86083 chore: cleanup 2023-07-08 19:04:47 +03:00
parazyd
363a6cd998 vanityaddr: Remove indicatif dependency. 2023-07-08 18:01:23 +02:00
parazyd
ba25b08458 net: Add a function to map DnetInfo into a JSON map. 2023-07-08 16:21:49 +02:00
parazyd
021235b534 util/ringbuffer: Use const generic for size. 2023-07-08 16:21:49 +02:00
aggstam
a63a808992 util/cli/async_daemonize: use log_file to explicitly write to, impl signal handler using async signal hooks 2023-07-04 13:17:40 +03:00
parazyd
9102fbf33c util/ringbuffer: Implement back() method. 2023-06-29 13:06:54 +02:00
parazyd
0ac5d6026b util/cli: Make -v show the [INFO] log target, and -vv to actually debug.
Also disable file logging by default.
This needs to be done through config files.
2023-06-29 13:06:54 +02:00
aggstam
9054780c28 util/time/TimeKeeper: changed slot epoch calculation(increment by 1) 2023-06-06 23:51:36 +03:00
parazyd
08e92dbde3 util: Implement RingBuffer as exportable API 2023-06-06 16:09:30 +02:00
aggstam
53682169cd sdk: get_verifying_slot_epoch added 2023-06-05 21:59:39 +03:00
parazyd
6cddfac05f Replace num_cpus crate with stdlib alternative. 2023-05-19 09:59:55 +02:00
aggstam
1bd504eaa0 util/time/TimeKeeper: added verifying slot attribute that can be used by the runtime for validations 2023-05-17 16:03:24 +03:00
parazyd
6ff88f036a util: Remove net_name module. 2023-05-09 09:10:17 +02:00
Dastan-glitch
15724ef072 remove unneeded comments 2023-05-06 00:56:39 +03:00
Dastan-glitch
aa2fd4e023 use custom parser for Timestamp and do conversions in tau 2023-05-05 23:27:48 +03:00
Dastan-glitch
6da636adff util/time: custom timestamp parser 2023-05-01 23:31:16 +03:00
aggstam
040a5d5604 sdk/util: replaced get_system_time with get_blockchain_time, get_current_epoch and get_current_slot added 2023-04-29 01:52:15 +03:00
aggstam
ec3bc88fb7 util/time: simplyfied Timestamp 2023-04-29 01:39:41 +03:00
aggstam
01dad53892 consensus: created helper struct for all time related calculations, for easier access by the runtime 2023-04-29 00:52:11 +03:00
parazyd
b4cdbea08c Update project dependencies. 2023-04-16 17:36:59 +02:00
parazyd
99df7d02ea cli: Always write the log target in logs. 2022-12-29 13:50:07 +01:00
parazyd
71cd3064d6 Update license year. 2022-12-28 13:06:00 +01:00
parazyd
9acfed6402 Clippy lints. 2022-12-14 12:30:27 +01:00
parazyd
88caee7f42 Update and clean up dependencies. 2022-12-13 15:19:09 +01:00
parazyd
b6a0170863 util/cli: Aesthetics 2022-12-12 17:25:26 +01:00
parazyd
1d7866f688 Update crate dependencies. 2022-11-29 13:54:05 +01:00
parazyd
8c27c24473 make fix 2022-11-06 21:29:06 +01:00
parazyd
f2dd798f2d Clear up most warnings and have test units pass. 2022-11-06 21:17:36 +01:00
parazyd
8ae84ad7f9 Add license header to source files. 2022-10-31 18:16:13 +01:00
Luther Blissett
79d37a1a6d util/path: Remove dependency on "dirs" crate. 2022-10-17 00:34:34 +02:00
Luther Blissett
5e4b663b13 Apply new path to serial crate throughout codebase. 2022-10-15 20:06:28 +02:00
Luther Blissett
47dbf1363f Clean up async_daemonize for less imports and use smol. 2022-10-14 14:07:06 +02:00
mohab metwally
fca2e499a6 [clock] moved clock to consensus 2022-10-10 11:58:17 +02:00
Luther Blissett
766c07c72c util: Add base32 encoding. 2022-10-08 13:24:17 +02:00
Luther Blissett
e7bc898923 darkwikid: main.rs improvements, and cleanups.
* Use dryoc for crypto_secretbox instead of public-key encryption.

* Detach raft task to background (this needs a good rework, current
  design is suboptimal).

* Remove ctrlc and add signal-hook to handle signals

* Upon SIGHUP, reload workspace secrets from the TOML config file.
2022-10-07 00:50:40 +02:00
Luther Blissett
88abda32ce make fix and cargo fmt. 2022-10-06 14:21:56 +02:00
Luther Blissett
77a68942df cargo fmt 2022-09-26 13:09:00 +02:00
mohab metwally
0f7902a968 prune unused imports in example/lead, util/clock 2022-09-25 20:16:41 +02:00
mohab metwally
95bb88cb24 [util/clock] add comments, tests 2022-09-25 20:16:41 +02:00
Luther Blissett
6fc5b43d54 Mop up dependencies and features. 2022-09-24 19:18:14 +02:00
Luther Blissett
c10d4f140b Make "util" module not depend on "rpc" (and in turn "net"). 2022-09-24 16:02:19 +02:00
Luther Blissett
0e5502f5d5 Move serialization library into its own submodule. 2022-09-24 16:02:19 +02:00
Dastan-glitch
a50de65a78 Clippy lints 2022-09-21 03:47:24 +03:00
Luther Blissett
1b4cea6924 Ignore editor backup files. 2022-09-19 16:58:37 +02:00
mohab metwally
6e02b37646 prune unused imports 2022-09-18 11:32:22 +02:00
mohab metwally
b43a6c5dcd merge last master commits 2022-09-17 15:33:56 +02:00
mohab metwally
f98137e306 merge crypsinous into master in crypsinousintomaster branch 2022-09-15 18:38:11 +02:00
Luther Blissett
470f8ee33d async_daemonize: Default logs to ~/.local/darkfi directory. 2022-09-15 12:50:13 +02:00