Dmitriy Ryajov
b8ee2ac71e
Update multicodecs ( #665 )
...
* rework merkle tree support
* rename merkletree -> codexmerkletree
* treed and proof encoding/decoding
* style
* adding codex merkle and coders tests
* use default hash codec
* proof size changed
* add from nodes test
* shorte file names
* wip poseidon tree
* shorten file names
* root returns a result
* import poseidon tests
* update multicodecs
* consolidating codex types and adding new codecs
* update codec
* remove temp codecs constants
* move codecs related stuff out
* updating codecs
* misc
* updating sizes since block size was adjusted to 64kb
* fix merge issues and cleanup a few warnings
2023-12-22 13:04:01 +01:00
Dmitriy Ryajov
52c5578c46
Rework merkle tree ( #654 )
...
* rework merkle tree support
* deps
* rename merkletree -> codexmerkletree
* treed and proof encoding/decoding
* small change to invoke proof verification
* rename merkletree to codexmerkletree
* style
* adding codex merkle and coders tests
* fixup imports
* remove new codecs for now
* bump deps
* adding trace statement
* properly serde of manifest block codecs
* use default hash codec
* add more trace logging to aid debugging
* misc
* remove double import
* revert un-needded change
* proof size changed
* bump poseidon2
* add from nodes test
* shorte file names
* remove upraises
* wip poseidon tree
* adjust file names
* misc
* shorten file names
* fix bad `elements` iter
* don't do asserts
* add fromNodes and converters
* root and getProof now return result
* add poseidon2 tree tests
* root now returns result
* misc
* had to make merkletree a ref, because nim blows up otherwise
* root returns a result
* root returns a result
* import poseidon tests
* bump
* merkle poseidon2 digest
* misc
* add merkle digest tests
* bump
* don't use checksuite
* Update tests/codex/merkletree/generictreetests.nim
Co-authored-by: markspanbroek <mark@spanbroek.net>
Signed-off-by: Dmitriy Ryajov <dryajov@gmail.com>
* Update codex/merkletree/merkletree.nim
Co-authored-by: markspanbroek <mark@spanbroek.net>
Signed-off-by: Dmitriy Ryajov <dryajov@gmail.com>
* Update codex/merkletree/merkletree.nim
Co-authored-by: markspanbroek <mark@spanbroek.net>
Signed-off-by: Dmitriy Ryajov <dryajov@gmail.com>
* Update tests/codex/merkletree/generictreetests.nim
Co-authored-by: markspanbroek <mark@spanbroek.net>
Signed-off-by: Dmitriy Ryajov <dryajov@gmail.com>
* missing return
* make toBool private (it's still needed otherwise comparison won't work)
* added `digestTree` that returns a tree and `digest` for root
* test against both poseidon trees - codex and poseidon2
* shorten merkle tree names
* don't compare trees - it's going to be too slow
* move comparison to mekrle helper
* remove merkle utils
---------
Signed-off-by: Dmitriy Ryajov <dryajov@gmail.com>
Co-authored-by: markspanbroek <mark@spanbroek.net>
2023-12-21 06:41:43 +00:00
Tomasz Bekas
2396c4d76d
Blockexchange uses merkle root and index to fetch blocks ( #566 )
...
* Blockexchange uses merkle root and index to fetch blocks
* Links the network store getTree to the local store.
* Update codex/stores/repostore.nim
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
Signed-off-by: Tomasz Bekas <tomasz.bekas@gmail.com>
* Rework erasure.nim to include recent cleanup
* Revert accidential changes to lib versions
* Addressing review comments
* Storing proofs instead of trees
* Fix a comment
* Fix broken tests
* Fix for broken testerasure.nim
* Addressing PR comments
---------
Signed-off-by: Tomasz Bekas <tomasz.bekas@gmail.com>
Co-authored-by: benbierens <thatbenbierens@gmail.com>
Co-authored-by: Dmitriy Ryajov <dryajov@gmail.com>
2023-11-14 13:02:17 +01:00
Tomasz Bekas
3bb5960739
Fix for decoding large manifests ( #479 )
2023-07-19 15:10:14 +02: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
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