Tanguy
499890d44c
Revert "[build] track nim-libp2p's unstable branch"
...
This reverts commit 8899b68d1a
.
2022-11-25 12:43:20 -06:00
Michael Bradley, Jr
61b18bbe93
[build] track nim-libp2p's unstable branch
2022-11-25 12:41:23 -06:00
Tanguy
b02a18b0db
Revert "[build] track nim-libp2p's unstable branch"
...
This reverts commit 8899b68d1a
.
2022-11-25 11:15:04 -06:00
Michael Bradley, Jr
644a8f84de
[build] track nim-libp2p's unstable branch
2022-11-25 11:11:10 -06: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, 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
Michael Bradley, Jr
75666d01bf
[node] add SQLiteStore backend
...
Closes #138
2022-08-08 02:12:43 -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
Bulat-Ziganshin
15ae157e61
BlockStore: delBlock got new type ( #123 )
...
Now every store traces only its own operations and failures (currently implemented only for delBlock)
2022-06-28 19:10:05 +03: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
Michael Bradley
209343087c
Change every dagger to codex ( #102 )
2022-05-19 13:56:03 -06:00