Skip to content

Commit

Permalink
Bring in refactored p2p sentry interface and adjust downloader for it (
Browse files Browse the repository at this point in the history
…#1497)

* Initial commit

* Add sentry gRPC interface

* p2psentry directory

* Update README.md

* Update README.md

* Update README.md

* Add go package

* Correct syntax

* add external downloader interface (#2)

* Add txpool (#3)

* Add private API (#4)

* Invert control.proto, add PeerMinBlock, Separare incoming Tx message into a separate stream (#5)

Co-authored-by: Alexey Sharp <[email protected]>

* Use new p2psentry interface

* Remove

* Fix lint

* Fix lint

* Separate upload messages into its own stream (#6)

Co-authored-by: Alexey Sharp <[email protected]>

* Add header upload

* Remove

* Add upload of block headers

* Add block bodies upload

* Fix lint

* Bugfix for blockBodies

* Fix for body upload logging

* Print peerId for GetBlockHeaders

* Invoke block hashes stage to enable block body upload

* Fix test

* Fix stuck bodies download

Co-authored-by: Artem Vorotnikov <[email protected]>
Co-authored-by: b00ris <[email protected]>
Co-authored-by: Alexey Sharp <[email protected]>
  • Loading branch information
4 people authored Feb 15, 2021
1 parent 101c7d7 commit 6e56097
Show file tree
Hide file tree
Showing 17 changed files with 1,431 additions and 1,072 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ integration:
@echo "Run \"$(GOBIN)/integration\" to launch integration tests."

headers:
$(GOBUILD) -o $(GOBIN)/headers ./cmd/headers
$(GOBUILD) -o $(GOBIN)/headers -tags 'mdbx' ./cmd/headers
@echo "Done building."
@echo "Run \"$(GOBIN)/integration\" to run headers download PoC."
@echo "Run \"$(GOBIN)/headers\" to run headers download PoC."

db-tools:
go mod vendor; cd vendor/github.com/ledgerwatch/lmdb-go/dist; make clean mdb_stat mdb_copy mdb_dump mdb_load; cp mdb_stat $(GOBIN); cp mdb_copy $(GOBIN); cp mdb_dump $(GOBIN); cp mdb_load $(GOBIN); cd ../../../../..; rm -rf vendor
Expand Down
Loading

0 comments on commit 6e56097

Please sign in to comment.