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
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
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
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
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
4ecfaab242
Merge branch 'master' into platformUpdate
2022-09-07 13:06:07 +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
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
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
tomFlowee
d066351103
Add convenience methods.
2022-07-12 15:05:12 +02:00
tomFlowee
8ff3802687
Fixes in the HDMaster* classes
2022-07-11 18:04:14 +02:00
tomFlowee
887fbef139
Add some convenients methods.
2022-07-11 13:31:24 +02:00
tomFlowee
a737803198
Install HDMasterPubkey.h
2022-07-11 12:55:31 +02:00
tomFlowee
0c2ddfe760
fix language in comment
2022-07-10 12:07:11 +02:00
tomFlowee
9a9a2d0829
Avoid duplicating magic numbers
...
Move the prefix numbers all to one place to avoid copy-pasting them.
Also make the xpub more complete.
2022-07-08 13:14:41 +02:00
tomFlowee
f318774663
Add HDMasterPubkey to derive xpub style addresses
...
This also alters the 'toString()' on HDMasterKey to stop giving
a rather useless xpub and turn it into a dedicated toXPubString()
Closes : #1
2022-07-07 21:16:50 +02:00
tomFlowee
0eee5a06b6
Split test into two.
...
Since they are in different libs, it makes sense to put the right part in
the right test dir.
2022-07-07 21:00:53 +02:00
tomFlowee
1ab4d88993
Split version.h
...
Version.h held mostly stuff for protocol.h, which is a hub-specific file.
The only thing that we actually use is the PROTOCOL_VERSION in our code
and as such that one moved to the interfaces dir.
2022-07-06 22:50:53 +02:00
tomFlowee
05bbba3cb3
Rename class CKey -> PrivateKey
2022-07-06 22:12:33 +02:00
tomFlowee
0f91e9ac46
Remove dead code
2022-07-06 22:08:50 +02:00
tomFlowee
c9af7cca4a
Rename class CPubKey -> PublicKey
2022-07-06 21:56:34 +02:00
tomFlowee
c33d54ed7d
Rename class CKeyID -> KeyId
2022-07-06 21:52:47 +02:00
tomFlowee
32c7f28b24
Change cast.
...
This correctly makes our value signed before turning it into
a negative number.
2022-07-06 14:28:34 +02:00
tomFlowee
1572608605
Make this explicit
...
Since the default copy constructor of the HDMasterKey uses the copy
constructor of CKey, make the latter have a copy constructor explicitly
defined as well.
2022-07-06 14:10:23 +02:00
tomFlowee
bc52d3eda0
Be consistent in the header file and avoid misuse.
2022-07-06 14:09:17 +02:00
tomFlowee
82ca91d836
Use slightly less memory.
...
This avoids creating an empty static string in most well written apps.
Also use const ref for a loop because that avoids copying.
2022-07-06 14:08:18 +02:00
tomFlowee
cfc50b3a9a
Always initialize this field in the constructor.
...
This avoids future problems should the constructor be used elsewhere.
2022-07-06 14:05:44 +02:00
tomFlowee
640d327311
Make disabled wallet stop getting data.
2022-06-24 14:13:32 +02:00
tomFlowee
e17ba3bc58
Add a property 'enabled' on PrivacySegment
...
A not-enabled PrivacySegment will not have its merkleblocks downloaded.
2022-06-23 23:17:05 +02:00
tomFlowee
c2c5fd7973
Make compile
2022-06-20 16:27:00 +02:00