Dmitriy Ryajov
22c31046a7
Dont dial self ( #633 )
...
* don't dial self
* revert style changes
* filter out self on dial
* add helpers to `peerId` and `isSelf`
* don't fire up discovery eaguerly
* allow excluding multiple peers in sendWantHave
* revert style changes
* move self check to discovery.find
* readd eaguer dht lookup is required in some cases
* revert style changes
* misc
* drop peer first, before queueing a dht lookup
* moar style changes
* use isSelf
2023-11-27 10:25:53 -08:00
Tomasz Bekas
3bb5960739
Fix for decoding large manifests ( #479 )
2023-07-19 15:10:14 +02:00
Jaremy Creechley
e47b38af11
Improving proc/func formatting consistency ( #454 )
...
* Fixes/workarounds for nimsuggest failures in codex.nim.
* remove rng prefix - it appears to work now
* format new's to be more consistent
* making proc formatting a bit more consistent
2023-06-22 08:11:18 -07:00
Ben Bierens
da79660f8e
Enable stylecheck ( #353 )
...
* applying styleCheck
* stuck on vendor folder
* Applies style check
* Turns styleCheck back off
* switches to stylecheck:usages
* Fixes empty template casing
* rolls up nim-blscurve, nim-datastore, nim-ethers, nim-leopard, and nim-taskpools.
* bumps nim-confutils and removes unused import from fileutils.nim
* Unused using in fileutils.nim is required by CI
* Reverts bump of nim-confutils module
2023-03-10 08:02:54 +01:00
Dmitriy Ryajov
5abf80cc69
Block download ( #304 )
...
* track inflight requests
* preperly handle precense updates
* trace number of of scheduled blocks
* invoke `payForBlocks` at the correct time
* reduntant block info on want list updates
* don't update prices in task handler
* PeerID -> PeerId
* cleanup
* proper log topic
* better chronicles topic filtering
* more trace logging
* sort want blocks
* wip - fix tests
* wip - fix tests, presence changes
* fix small test issue
* return price
* payment related changes
* misc
* re-enable payment tests
* fix warn wording
* fix `u256` conversion
* minor misc changes
* don't idle for so long on `encode`
* logging
* move buff
* disable cache by default
* disable cache by default
* fix streamOneBlock
* log node stopping/exiting
* trace logging
* don't stringify cid
* use `self`
* quick cleanup
* rename enums
* rename enums
* turns out we don't needs this test
* fix wording
2022-11-15 09:46:21 -06:00
Michael Bradley
c893b1f0cb
track latest nim-libp2p's master branch ( #248 )
...
* [build] track nim-libp2p's unstable branch
* cid formatIt change
* track nim-libp2p-unstable
* don't stringify cid
* Fixed testblockexc.nim
1. Assign price to blocks
2. Delete on node1 cached blocks from node2 before buying them again
* add trace logging
* init pricing info
* remove duplicate price setting
* cid serialization in trace logs
* bumping dht to latest main
* bump
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
Co-authored-by: Bulat-Ziganshin <bulat.ziganshin@gmail.com>
2022-11-02 11:40:28 -06:00
Bulat-Ziganshin
9939d85b74
Replace protobuf serialization for Block exchange with minprotobuf ( #271 )
...
* minprotobuf serialization for Block exchange
* Handle decoding errors by stopping peer connection
2022-10-13 18:58:57 -05:00
Dmitriy Ryajov
6ce7e23767
Upload authenticators ( #108 )
...
* initial implementation of storage proofs upload
* make sure proof verifies with after deserializing
* add por store
* rename por store to stp store
* rename porstore to stpstore
* add support for host discovery to discovery mock
* add tags upload network tests
2022-05-25 20:29:31 -06:00
Dmitriy Ryajov
6ad7a6bb96
Batched blocks ( #105 )
...
* remove sleep
* throttle prefetch
* break loop if conn closed
* logging
* prefetch blocks in batches
* add blocks batch constant
2022-05-20 10:53:34 -06:00
Dmitriy Ryajov
d4f3ebc867
reorg engine directory structure ( #104 )
2022-05-19 16:28:53 -06:00