Commit Graph

255 Commits

Author SHA1 Message Date
Kleissner
05a31cf3af Warehouse: Automatically create .merkle companion files to store the entire merkle tree. Close #48
Pregenerating this means that fragments can be serve immediately with 0 hash calculation needed.
2021-11-28 21:52:30 +01:00
Kleissner
5ad8586cd4 Merkle: Define MinimumFragmentSize. Split code into ReadMerkleTreeHeader function. #48 2021-11-28 20:47:01 +01:00
Kleissner
d5b95542e6 Rename fragment to merkle #48 2021-11-27 14:57:19 +01:00
Kleissner
954afb2c12 Merkle tree: export/import functions. #48 2021-11-27 05:30:20 +01:00
Kleissner
c7665d7385 Merkle Tree create verification hashes and implementation of validation function. #48 2021-11-27 02:30:31 +01:00
Kleissner
19971c629d Merkle tree creation. #48 2021-11-27 00:53:39 +01:00
Kleissner
d64f8b19fb webapi: New function /warehouse/read/path to read a file from warehouse to disk 2021-11-26 08:53:42 +01:00
Kleissner
3b839d547b File fragment size calculation and documentation of research. #48 2021-11-22 04:47:42 +01:00
Kleissner
f7e8f1821b New flag Firewall in the Features field to inform uncontacted peers that a Traverse message might be required to establish a connection. Close #61
This flag can be activated via the config setting LocalFirewall.
The Features field exists in Announcement/Response messages and was now added to peer records.
2021-11-20 04:28:03 +01:00
Kleissner
446c62bcd9 Explicitly define locations for important files and folders in the config file.
This removes the hardcoded paths for the blockchain and warehouse.
2021-11-17 17:37:04 +01:00
Kleissner
83e6e5fb62 Additional error logging for multicast/broadcast 2021-11-16 22:04:18 +01:00
Kleissner
f9d8ecb6b0 webapi: Implement optional API key to secure the API against unauthenticated attackers. 2021-11-16 19:27:53 +01:00
Kleissner
d06c2e0b1a Define common application exit codes for backend executables in Exit.go.
Improve logging of webapi start.
2021-11-15 03:00:24 +01:00
Kleissner
9626fa8088 Fork btcec to remove external dependency. This significantly reduces the count of indirect modules (cuts it by half). Close #7
Update the other Go modules.
2021-11-14 22:37:07 +01:00
Kleissner
a727f4d8b1 Define and document the flow window size for transfer.
Document webapi timeout parameters.
2021-11-13 14:41:14 +01:00
Kleissner
eb0ad540fe UDT: Finally fixing this piece of crap by rewriting the send logic. Close #58 2021-11-11 18:47:10 +01:00
Kleissner
ce37461705 Improve MTU settings and documentation. #41 2021-11-09 21:04:06 +01:00
Kleissner
014d4a34ee UDT: Fix in receiveLossHeap.Range 2021-11-08 19:26:53 +01:00
Kleissner
80bf639aea UDT: Provide io.EOF signal in udtSocket.fetchReadPacket. Otherwise readers may linger forever. 2021-11-08 05:12:40 +01:00
Kleissner
c44b05b9c1 UDT: Remove buggy EXP code. It caused wrong termination. It is not needed; the Peernet protocol handles connectivity. 2021-11-08 04:57:21 +01:00
Kleissner
f3d5f23cf9 Transfer: Record close reason of underlying library (UDT). This helps for debugging issues. Close #54 2021-11-08 04:40:53 +01:00
Kleissner
2924f0074d UDT: Redeveloped receiving code to fix the packet reassembly bugs. 2021-11-08 00:14:56 +01:00
Kleissner
bb2a4bac48 Update User Agent, new release! 2021-11-05 03:44:20 +01:00
Kleissner
14f034cc8d Turns out internet MTU must be honored, otherwise packets are dropped/not reassembled. Setting to 1500 bytes for transfer messages. 2021-11-05 03:39:46 +01:00
Kleissner
0d62c215ee UDT: Fixing #43 #49 #51. File transfer works in test environment.
More tests needed for production testing. Internet MTU needs to be tested.
2021-11-05 03:19:29 +01:00
Kleissner
f76426aa48 UDT: Remove the datapacket_heap with the new heap code 2021-11-05 01:06:02 +01:00
Kleissner
8502cb15cf UDT: Fix the first piece of !@#$ heap code. Rewrite from scratch. 2021-11-05 00:41:06 +01:00
Kleissner
bfe2985149 UDT: Remove broken sentAck2. Always send ACK2 in response to an ACK. No need for artificial delay. 2021-11-04 23:43:18 +01:00
Kleissner
1573ded639 UDT: Fix invalid initial packet sequence number when random number was a signed negative int 2021-11-04 22:35:57 +01:00
Kleissner
d0b5db9437 UDT: Removing light ACK. This reduces complexity. 2021-11-04 21:20:47 +01:00
Kleissner
b728b939ec UDT: Remove ackInterval which was never set anyway. Instead, send ACK every few packets depending on congestion window and count of sent packets.
Removing LightACK. The implementation of it was confusing (it competed with ACK in a race condition) and rather pointless. LightACKs will be ditched completely to get to a working version.
2021-11-04 20:47:34 +01:00
Kleissner
d9bbdf573e Disable pogreb log output 2021-11-04 18:34:31 +01:00
Kleissner
cce68e9abe UDT: Fix packets being resent are not stored on the to-acknowledge list.
Add return statement in udtSocketSend.processDataMsg which was incorrectly removed with de9b67e751
2021-11-04 18:22:31 +01:00
Kleissner
e6846c232c UDT: Fix another bug, this time in udtSocket.Read. This UDT library is a fucking piece of !@#$ code that deserves a special place in hell. It probably takes longer fixing this piece of !@#$ than writing a new library from scratch. booh! 2021-11-04 17:05:53 +01:00
Kleissner
e141510b9c UDT: Fix divide by zero 2021-11-04 14:17:03 +01:00
Kleissner
cc3384e03e Merge branch 'master' of github.com:PeernetOfficial/core 2021-11-04 14:09:55 +01:00
Kleissner
29061318da UDT: Fix bug in packet.Add 2021-11-04 14:09:48 +01:00
Akilan Selvacoumar
78e46b8daa Merge pull request #53 from PeernetOfficial/Akilan1999-patch-1
Create release-drafter.yml
2021-11-04 00:35:30 +04:00
Akilan Selvacoumar
ed6d6becc8 Delete main.yml 2021-11-04 00:35:05 +04:00
Akilan Selvacoumar
006a8a0479 Create draft.yml 2021-11-04 00:34:08 +04:00
Akilan Selvacoumar
c15f9d4adf Create release-drafter.yml 2021-11-04 00:32:56 +04:00
Akilan Selvacoumar
ca10ee8277 Rename release.yml to main.yml 2021-11-04 00:29:16 +04:00
Akilan Selvacoumar
627d608232 Update release.yml 2021-11-04 00:28:45 +04:00
Akilan Selvacoumar
5489a7c502 Update release.yml 2021-11-04 00:26:34 +04:00
Akilan Selvacoumar
96fac9c56e Update and rename main.yml to release.yml 2021-11-04 00:12:58 +04:00
Kleissner
de9b67e751 UDT: Minor refactor of udtSocketSend.processDataMsg 2021-11-03 21:07:43 +01:00
Kleissner
451aac9c47 Fix bug in transfer code. A wrong transfer size was returned when an offset was used. 2021-11-03 21:02:00 +01:00
Kleissner
4bb8ac7adf UDT: Fix critical bug in udtSocket.Write use after return. CC #43 2021-11-03 20:57:04 +01:00
Kleissner
b04e089fbe Merge branch 'master' of github.com:PeernetOfficial/core 2021-11-03 20:53:08 +01:00
Kleissner
62c262e2b6 UDT: Fixing critical bugs in heap code. Fixing endless loops! #51 #49 2021-11-03 20:52:32 +01:00