Commit Graph

12581 Commits

Author SHA1 Message Date
tomFlowee f3fb02a522 Make channel interface available
The manager now has an addChannel() method for anyone wanting to
implement a separate logging channel.
2022-11-24 18:14:14 +01:00
tomFlowee d8fa590547 Add useful overloads 2022-11-23 16:31:29 +01:00
Your Name 0ea51337d2 Minor fixes
Use a simple buffer on stack to read into, instead of a buffer pool.
Small fixes as well.
2022-11-14 13:15:08 +01:00
tomFlowee badfaaec0b remove stray character in message 2022-11-13 19:13:10 +01:00
tomFlowee 4b358543c5 Add unit test for partial blockchain saving. 2022-11-13 15:53:51 +01:00
tomFlowee 46c6febfa1 Make compile on CLANG 2022-11-13 12:20:23 +01:00
tomFlowee 8780f16383 Implement the compressSaveFiles method
Makes the change from yesterday complete: we now
compress all the chunks into one periodically.

This, again, is done with a timeout instead of on-close.
We have 45 seconds as a timeout to balance between need to save and
waiting long enough to get additional headers should it
have been a while since last run.
2022-11-13 12:16:26 +01:00
tomFlowee 06b3d3d491 Save the downloaded block headers into multiple files
This change makes it so that we rely less on the downloaded
blockheader data being only in memory and us saving it when
the client shuts down.
Instead, we save more regularly and we save smaller files
instead of always overwriting the complete downloaded headers.

Having less to save at shutdown is then a happy side-effect.
2022-11-12 23:42:59 +01:00
tomFlowee 64d382b7c4 Add saveData() function to p2p net 2022-11-11 19:25:19 +01:00
tomFlowee f798bf6fe5 On adding log-file output, instantly open it.
This allows this API to be used in more places and do the expected
thing.
2022-11-11 19:03:57 +01:00
tomFlowee bfda224542 Use static_cast instead. 2022-11-08 12:23:00 +01:00
tomFlowee bc51922aa6 Use new Qt for Android 2022-11-05 13:24:42 +01:00
tomFlowee 2474134058 Follow new dependencies for apt line 2022-11-05 12:20:25 +01:00
tomFlowee 8d5081df72 Remove printing version; qt6/cmake seems to have broken that. 2022-11-05 12:20:04 +01:00
tomFlowee 9e295b6f30 Port to std library equivalent. 2022-11-04 11:51:23 +01:00
tomFlowee 6c8263f50f Add comment. 2022-11-04 11:50:49 +01:00
tomFlowee f4ed75f316 Avoid auto-cast, clang didn't like it.
This avoids the code behaving differently under clang.
2022-11-04 11:49:43 +01:00
tomFlowee 126de2a231 Add new NetworkConnection::setLoginMessageCreator() 2022-11-03 23:40:31 +01:00
tomFlowee 21759ecfd7 make this work with the latest CMake 2022-10-06 22:53:09 +02:00
tomFlowee 5502724d68 Add a build script to build for Android
This uses the docker based workflow for the toolchain.
2022-09-16 17:37:45 +02:00
tomFlowee 0aa08e4e79 Fixlets to make cmake work more cross-platform. 2022-09-16 17:36:43 +02:00
tomFlowee 58afd8ab6a Make compile with older libc 2022-09-13 20:30:38 +02:00
tomFlowee de8014a568 Make compile on Android 2022-09-13 11:17:40 +02:00
tomFlowee c000a9d64a New version 2022-09-10 00:50:20 +02:00
Tom Zander 5f01f46967 Merge pull request 'platformUpdate' (#2) from platformUpdate into master
Reviewed-on: https://codeberg.org/Flowee/thehub/pulls/2
2022-09-10 00:41:21 +02:00
tomFlowee d51f9fdf09 Finish porting 2022-09-10 00:36:53 +02:00
tomFlowee 7d7cc2a7c0 Port httpengine to Qt6 2022-09-10 00:35:59 +02:00
tomFlowee c5e6d9d36a With Qt6 comes the availability of C++17 2022-09-09 18:08:03 +02:00
Stefan Kebekus 58883ddfc2 Fixes compile warnings under LLVM 2022-09-09 17:45:53 +02:00
tomFlowee 2d3d74d9c7 Update for changes path from QT_TESTCASE_BUILDDIR
Seems that the this path changed, either in Qt or in the cmake modules
(which comes down to the same thing).
It now no longer points to the root of my project but to the place where
my executable is stored (the testing/api dir).
2022-09-07 15:46:45 +02:00
tomFlowee 1d4b476045 Port to Qt6 and cleanup
A simple port caused a regression in the unit tests that took me a long
time to track down, as a result the code has been commented, prettyfied
and more.

The final issue was that the return time of QList::size() turned from an
int to a ulong and I stored that in a QDataStream with the streaming
operator.
On extracing the now twice as long number I just put it into an int,
causing 4 bytes to not be read and a subsequent off-by-one in reading
further data from the file (a list of ints).
2022-09-07 15:08:34 +02:00
tomFlowee 4ecfaab242 Merge branch 'master' into platformUpdate 2022-09-07 13:06:07 +02:00
tomFlowee 9269fc873d Fix warnings and possible off-by-one 2022-09-07 13:04:30 +02:00
tomFlowee 2f70766091 remove useless 'throw' statements 2022-09-07 12:53:35 +02:00
tomFlowee f7bf33828f Stop using deprecated Qt APIs
This makes the code compile on Qt6 as well.
2022-09-07 12:53:35 +02:00
tomFlowee abea4c9bce Remove this from compile for now 2022-09-07 12:05:27 +02:00
tomFlowee 66f3ec2fe4 Port to Qt6 2022-09-07 12:01:14 +02:00
tomFlowee 9789296212 Port to newer Qt apis 2022-08-21 11:48:58 +02:00
tomFlowee adc1d8d3fe Support cash-addresses in cpu-mining coinbase.
Tested by mining a testnet4 block (109202)
2022.08.0
2022-08-18 23:29:40 +02:00
tomFlowee 10f94a0e74 Fixlet in logging. 2022-08-18 23:13:35 +02:00
tomFlowee 45877375c2 New version 2022-08-18 11:25:32 +02:00
tomFlowee 3ed5b1117f Fixlet in comment 2022-08-17 19:28:42 +02:00
tomFlowee adc5719534 Copy list to avoid possible deadlock.
This change allows a listener to remove itself during the callback.
2022-08-15 20:10:05 +02:00
tomFlowee c6720314ff API fix 2022-08-13 23:42:40 +02:00
tomFlowee 445201b241 Update the readme 2022-07-21 18:22:46 +02:00
tomFlowee c9950c11d5 New version 2022.07.0 2022-07-15 10:01:15 +02:00
tomFlowee a298d86f5f This seed has 1 IP which is currently offline.
For now lets just disable it.
2022-07-14 10:52:00 +02:00
tomFlowee 62a6f5c7d9 Cleanups in spv sync for multiple peers
This makes the logic much more pridictable.
2022-07-13 14:00:47 +02:00
tomFlowee d32013f8be Avoid accidental sync. 2022-07-13 13:57:45 +02:00
tomFlowee 5f629a161e Let the actions do the assignments of segments.
This removes some code from the connectionmanager / blockchain classes
which assigned a random segment on a new peer.
2022-07-13 13:50:23 +02:00