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
Michael Bradley, Jr
3d823dcbc6
[stores] update getBlock return type
...
change return type for `method getBlock` from `Future[?!(?Block)]` to
`Future[?!Block]`
use `type BlockNotFoundError = object of CodexError` to differentiate between
"block not found in the store" and other errors
also make some logic and error handling/messages more consistent across
BlockStore implementations
closes #177
closes #182
closes #210
alternative to #205 , #209
2022-08-22 20:52:51 -05:00
Bulat-Ziganshin
0bfe26440e
WIP: Harmonize BlockStore API (remaining functions) ( #123 ) ( #130 )
...
BlockStore API got new return types (rationale in https://github.com/status-im/nim-codex/issues/123#issuecomment-1163797753 ):
- getBlock: Future[?! (?Block)]
- putBlock/delBlock/listBlocks: Future[?!void]
- hasBlock: Future[?!bool]
Plus refactored readOnce(StoreStream) and check received data in its tests.
And replaced local use of AsyncHeapQueue with seq.sort.
2022-07-28 03:39:17 +03:00
Mark Spanbroek
13bbf2b052
Fix test that was failing intermittently
...
Give test more time to complete but do not increase
sleep time more than necessary, by introducing
waiting loop for test purposes.
2022-07-20 13:43:20 +02:00
Dmitriy Ryajov
56b80d6f6d
Por serialize ( #106 )
...
* move por into storage proofs
* use SeekableStream
* adding serialization for por
* remove leftovers
* add empty block support
* add basic por test
* rename block exchange for consistency
* add storageproofstests
* moving timing to storageproofs
* fix imports
* fix imports
* fix imports
* add top level exports
* move delete blocks helper to helpers
* more import/export fixes
* cleanup
* more import fixes
* fix unused warnings
* detect corrupt blocks tests
* add serialization tests
* move init method around
* bump asynctest
* fix CID version
* get rid of warning
* wip: fix CI
* increase CI timeout
2022-05-23 23:24:15 -06:00
Dmitriy Ryajov
d4f3ebc867
reorg engine directory structure ( #104 )
2022-05-19 16:28:53 -06:00