Luke Dashjr
ba6946c043
Merge remote-tracking branch 'github-pull/44/head'
2024-12-14 03:16:13 +00:00
Luke Dashjr
14b31eb647
Bugfix: conf: Handle null values correctly (as if they don't exist) and fail some invalid cases more gracefully
2024-12-13 22:56:14 +00:00
JesterHodl
b628b8937b
Improve use of sprintf and snprintf
2024-12-10 23:07:21 +01:00
JesterHodl
0a615594f7
Fix superfluous newline in log when getaddrinfo fails
...
What happens is that you can get this in the log.
2024-12-10 17:30:02.356 [ datum_protocol_client] ERROR: getaddrinfo: Name or service not known
2024-12-10 17:30:28.964 [ datum_gateway_template_thread] DEBUG: DEBUG: calling datum_gbt_parser (new=0)
2024-12-10 21:03:09 +01:00
Luke Dashjr
f34ed3242f
api: Support no-JS empty_thread and kill_client commands
2024-12-07 22:07:45 +00:00
Luke Dashjr
7be012af2e
Merge remote-tracking branch 'github-pull/43/head'
2024-12-07 22:03:49 +00:00
532497662b
bump datum version to v0.2.1-beta
2024-11-28 11:26:38 +01:00
Luke Dashjr
2f7f2b5bde
Merge remote-tracking branch 'github-pull/41/head'
2024-11-14 23:20:39 +00:00
Jason Hughes
2bbf8c6621
fix inconsistent protocol thread state on error, issue #40
2024-11-14 18:08:03 -05:00
Luke Dashjr
940a372494
utils: Add datum_atoi_strict for simple fixed-size buffer number parsing
2024-10-29 14:49:08 +00:00
Luke Dashjr
665aa78795
Merge remote-tracking branch 'github-pull/33/head'
2024-10-29 14:38:15 +00:00
Luke Dashjr
6ea83f8b56
Merge remote-tracking branch 'github-pull/35/head'
2024-10-29 14:35:34 +00:00
JesterHodl
d91a836d75
Improve error messages of fopen() calls
...
It helped me find an issue in my config. The error message from fopen, and the filename I was trying to open
2024-10-27 17:26:06 +01:00
JesterHodl
c4900b4afd
Use localtime_r in get_midnight_timestamp()
...
It's thread-safe and it's 4x faster too
2024-10-25 00:00:26 +02:00
Maciej Sołtysiak
497401e6f0
Fix typo in loop condition in datum_queue_add_item()
...
Anything larger than 9999999 doesn't make sense
2024-10-24 18:52:24 +02:00
Maciej Sołtysiak
4c26ea6267
Backout freeing and zeroing out q->buffer[1]
...
This fixes the original harmless buglet of zeroing out q->buffer[0] twice
Will think about the rest of the potential race condition now.
2024-10-24 18:22:49 +02:00
JesterHodl
a384ff68a1
Fix bugs in datum_queue_free
...
1. q->buffer[1] doesn't seem to be free()'d
2. q->buffer[0] is duplicated, you probably meant to zero out buffer[1]
3. shouldn't the unlocking order be reverse of locking order to prevent deadlocks?
2024-10-23 00:34:54 +02:00
JesterHodl
2e13d840a8
Implement failure handling in datum_coinbaser_init.
2024-10-21 21:29:58 +02:00
JesterHodl
f45c2902bd
Revert formatting of DATUM_CONF_STRING_ARRAY
...
Indeed I mixed the key with value
2024-10-21 20:59:28 +02:00
Luke Dashjr
62d92d04fb
Merge remote-tracking branch 'github-pull/19/head'
2024-10-21 13:26:04 +00:00
JesterHodl
8b2eac3a26
Update Debian/Ubuntu cli to install library dependencies for building
2024-10-20 20:39:29 +02:00
JesterHodl
af3843a974
Merge branch 'OCEAN-xyz:master' into format-config-better
2024-10-20 20:03:03 +02:00
JesterHodl
af4fa38909
Format output of -? better
...
1. String array should show square brackets.
2. : { is better readable than :{
3. Format curly brackets to 4 and 8 spaces so that it all looks like nice, proper JSON
2024-10-20 19:52:37 +02:00
JesterHodl
4a838e3057
Make Could not fetch new template more informative
...
Helps with debugging typos in the config
2024-10-20 19:39:45 +02:00
Luke Dashjr
86a39a0875
Delete dead datum_logger declaration
2024-10-20 17:01:50 +00:00
Luke Dashjr
40ff91b531
Bugfix: Address incorrect formatting specifiers, and add "format" attribute to datum_logger_queue_msg
2024-10-20 17:00:26 +00:00
Luke Dashjr
900b595db7
Merge remote-tracking branch 'github-pull/16/head'
2024-10-20 16:58:51 +00:00
JesterHodl
fbbffc18d7
Too few arguments to formatting function DLOG
2024-10-20 17:44:05 +02:00
Luke Dashjr
36613ef5f2
Merge remote-tracking branch 'github-pull/9/head'
2024-10-19 19:47:55 +00:00
Luke Dashjr
edf956f46d
utils: Delete unused current_time_nanos
2024-10-19 17:45:43 +00:00
Luke Dashjr
7a7587ad8c
utils: Correct comments in current_time_{micros,nanos}
2024-10-19 17:45:09 +00:00
Luke Dashjr
bcc70fbfc6
Merge remote-tracking branch 'github-pull/11/head'
2024-10-19 17:10:14 +00:00
Greg Tonoski
22f30ee7f0
Update datum_conf.c typo correction
2024-10-19 17:05:44 +02:00
Luke Dashjr
cc0f16a989
Merge remote-tracking branch 'github-pull/7/head'
2024-10-19 14:18:10 +00:00
Luke Dashjr
c64be8c9fc
Merge remote-tracking branch 'github-pull/6/head'
2024-10-19 14:18:05 +00:00
Luke Dashjr
5c7260e92c
README: Add pkg-config requirement
2024-10-19 14:18:03 +00:00
Vincenzo Palazzo
25e72324b9
ci: build datum inside the CI
...
As this could be a potential spam point for our GitHub because
people might submit code without verifying if it compiles.
However, having this inside the CI allows us to cover a basic compilation
test, which for some contributions may not require a full build. Additionally,
we can ensure that the code compiles on basic Linux OS environments, like Ubuntu,
or detect if there are any dependency breaks (even with minimal dependencies,
so this shouldn't be an issue either).
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-10-19 12:16:15 +01:00
Greg Tonoski
e3b2820cb7
Update thirdparty_base58.c typo correction
2024-10-19 11:54:36 +02:00
Georges Palauqui
88992bb7bb
fix very minor typo
2024-10-19 10:27:01 +02:00
Luke Dashjr
c8cb0da63d
Packaging rules for Debian-based distros
2024-10-18 20:14:32 +00:00
Luke Dashjr
f47140b2d2
build: Support make install
2024-10-18 18:50:16 +00:00
Jason Hughes
c4a1845a53
Initial import of DATUM codebase
...
Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
2024-10-18 16:53:13 +00:00
Skyler
28330dece7
www: Import DATUM logo
2024-10-18 16:52:59 +00:00
Pieter Wuille
ae2b844b9a
Import reference Bech32 implementation
2024-10-14 16:58:10 +00:00
Luke Dashjr
7f8feac462
thirdparty_base58: Merge in base58.c from libblkmaker
2024-10-14 15:05:42 +00:00
Luke Dashjr
e616e97e8c
Import base58.c from libbase58
...
Co-authored-by: Huang Le <4tarhl@gmail.com>
Co-authored-by: Aaron Voisine <voisine@gmail.com>
2024-10-14 15:00:32 +00:00
Luke Dashjr
e4d81f43f2
utils: Unpack and pack utility functions ([u]pk_u{8,16,32}le)
2024-10-14 14:54:21 +00:00
Hennadii Stepanov
af7bb6c92c
Copy cmake/script/GenerateBuildInfo.cmake from Bitcoin Core
2024-10-14 14:52:12 +00:00