Commit Graph

247 Commits

Author SHA1 Message Date
ledgerwatch
9d88cb59c7
Cleanup interfaces (#5245)
* Cleanup interfaces

* Fix for windows

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-01 07:00:29 +01:00
Alex Sharov
b4fffacb4c
fix docker ci (#5242) 2022-08-31 11:23:19 +07:00
Max Revitt
159e53d503
EVM fix - issue #5077 (#5233)
* fix(evm): output and add makefile command

* fix(evm): correct number type conversion
2022-08-31 07:51:08 +07:00
Tim Myers
20e882078e
chore: add multi-arch goreleaser workflow (#5185)
Upstreams the improvement from the maticnetwork/erigon fork
to add a goreleaser workflow that will build and release
a docker image for both arm and amd64.
2022-08-27 16:22:28 +07:00
mikolajsobolewski
5390ab6632
Cross-platform iso-8601 date (#5147) 2022-08-23 12:38:02 +07:00
Alex Sharov
351cd49c21
go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
Alex Sharov
9dc15ac5bb
integration mdbx_to_mdbx (#4897) 2022-08-02 13:37:57 +07:00
Alex Sharov
b231856c1c
avoid sudo in makefile #4818 2022-07-25 11:29:34 +07:00
Alex Sharov
62873649d9
lint up 47.2 (#4801) 2022-07-23 10:09:24 +07:00
Max Revitt
d6001225e7
feat(makefile): add documentation and coverage command (#4792) 2022-07-22 14:26:18 +02:00
Alex Sharov
2706b01cea
go mod (#4762) 2022-07-20 12:23:12 +02:00
Alex Sharov
bda2697bcc
linter version up #4745 2022-07-19 10:56:14 +07:00
Alex Sharov
c9306ab8d0
disable asserts in devel (#4746)
* save

* save
2022-07-19 10:54:44 +07:00
Max Revitt
e8f83db208
Gas api unit tests (#4715)
* gas price initial unit tests

* tweak(makefile): gas price test timeout increase

increase test timeout in Makefile to 50s from 30s
to cater for increased test time unit testing
gas price logic.

Co-authored-by: Scott Fairclough <scott@hexosoft.co.uk>
2022-07-15 14:56:35 +02:00
Cory
0ca3ff3858
Fix regex (#4678) 2022-07-09 11:56:23 +06:00
Cory
9f5b401547
Fix grafana startup in docker-compose (#4677)
* grafana user 472:0

* Fix typo extra ~ in Makefile

* Create grafana dir correctly

* chown -R
2022-07-08 12:11:07 +06:00
Cory
74cf9840ae
Patch plumbing of docker-compose UID/GID build args (#4527)
* Patch plumbing of docker-compose UID/GID build args

* Fallback to 1000/1000 if DOCKER_(U|G)ID not set

* Revise README.md instructions for docker further

* Fix existing typo forc 'servie' -> 'service'

* Rename PUID/GUID -> UID/GID

* Specify user in erigon docker service

* Rely on .env instead of specifying :-1000

* Polish Makefile for docker use case

* one more helpful comment

* make docker should use UID/GID --build-arg

* Fix make docker and more fail-fast if envvar set incorrect

* mv .env->.env.example to not intefere existing workflows

* Specify envvars in docker CI

* Adjust validate_docker_build_args to permit non-erigon user

* Also run docker CI target on macos-11 os

* Add DOCKER_UID, DOCKER_GID in hooks/build

* Patch docker build arg validation for macos

* Add actions-setup-docker@master for macos

* Don't run automated test for docker macos

* Cleanup Makefile

* Comments, targets for erigon users

* More Makefile cleanup, debugging still

* Typo fix

* Create subdirs before calling ls

* Get rid of flaky validation

* DOCKER_UID, DOCKER_GID init to runner if not set

* Get rid of unnecessary variable for now

* Improved README based on new changes

* Proper uid/gid `make user_*` when no envars set

* Fix typo in Makefile comment

* Fix make docker as sudo user
2022-06-30 16:11:37 +06:00
3nprob
a738a0dd51
makefile: Add DOCKER_{UID,GID,TAG} make params (#4457)
Co-authored-by: 3np <3np@example.com>
2022-06-16 15:50:59 +01:00
ledgerwatch
8e3ac8a21c
Erigon2 upgrade 2 prototype (#4341)
* Erigon2 upgrade 2 prototype

* Latest erigon-lib

* Fixes

* Fix print

* Fix maxSpan

* Reduce maxSpan

* Remove duplicate joins

* TxNum

* Fix resuming

* first draft of history22

* Introduce historical reads

* Update to erigon-lib

* Update erigon-lib

* Update erigon-lib

* Fixes and tracing for checkChangeSets

* More trace

* Print account details

* fix getHeader

* Update to erigon-lib main

* Add tracer indices and event log indices

* Fix calltracer

* Fix calltracer

* Duplicate rpcdaemon into rpcdaemon22

* Fix tests

* Fix tests

* Fix tests

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-10 16:18:43 +01:00
Alex Sharov
de20b01e27
"make docker" add latest tag #4361 2022-06-04 12:59:22 +07:00
Alex Sharov
4150c66eb7
Dockerfile add buildcache (#4332) 2022-06-02 15:49:21 +07:00
Alex Sharov
955c669d21
Group few sync configs (#4303)
* save

* save
2022-05-30 17:08:49 +07:00
Alex Sharov
66248c4bfb
Torrent: verify all files (#4270) 2022-05-26 12:27:44 +07:00
Alex Sharov
fc1a37e6dc
create turbo/services pkg (#4269) 2022-05-26 10:31:06 +07:00
battlmonstr
0d259384a0
CI (#3779): pass docker build arguments on Docker Hub (#4252) 2022-05-25 08:12:40 +07:00
Alex Sharov
cb70e3315b
use git submodule sync --recursive because submodule url changed (#4243) 2022-05-24 10:58:46 +07:00
battlmonstr
54cf932652
Makefile: pass docker build arguments (#4212)
Dockerfile requires some --build-arg options.
Fix "docker" target to pass them.
Fix GIT_TAG to reflect the most recent tag related to HEAD, instead of an unrelated most recent tag.
Use it as the image VERSION.

Image tags need to be passed explicitly if needed:

    DOCKER_FLAGS='-t erigon:latest' make docker
2022-05-21 10:21:35 +01:00
Alex Sharov
3e4fb5dd49
up linter version (#4108)
* save

* save

* save
2022-05-10 10:14:09 +07:00
battlmonstr
c9a1c93b44
tests: split slow integration tests (#4048) 2022-05-04 10:35:59 +07:00
battlmonstr
2e4947bbfb
p2p: improve test TestTable_findnodeByID (#4047)
* refactor test
* add a fast fixed examples test for the main suite
* split slow test for the integration suite
2022-05-03 08:32:54 +01:00
Alex Sharov
38e8706c91
Docker build: make db-tools to depend on git-submodules (#4024)
* save

* save

* save

* save

* save
2022-04-29 14:07:39 +07:00
battlmonstr
92db317e06
Observer - P2P network crawler (#3928)
Observer crawls the Ethereum network and collects information about the nodes.
2022-04-22 12:02:12 +01:00
Alex Sharov
65be763354
min requirement to go 1.18 (#3934)
* save

* save
2022-04-22 10:56:44 +07:00
battlmonstr
a8f20f01c4
Makefile: refactor build flags and fix 1.17 (#3930) 2022-04-22 07:15:23 +07:00
Alex Sharov
667125bc65
go_1.18 on CI and in Docker (#3843) 2022-04-21 14:51:30 +07:00
Alex Sharov
9051d95836
Downloader tables, mdbx-based torrent pieces completion store (#3923)
* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save

* save
2022-04-21 10:34:31 +07:00
Alex Sharov
1bbe2037f3
linter 1.445 (#3809) 2022-04-01 15:20:27 +07:00
Alex Sharov
9c49142e6b
Snapshots: script to commit hashes (#3746) 2022-03-21 13:40:35 +07:00
Alex Sharov
586ad297e6
Snapshots: script to auto-commit torrent hashes (#3745) 2022-03-21 11:22:37 +07:00
ledgerwatch
d5fb8f7d24
[erigon2] Separate handover timing (#3736)
* Separate handover timing

* Update

* Corrected handover time calculation

* Not use compression when aggregate

* Update to latest erigon-lib

* Update to erigon-lib main

* Update

* Disable reproducible builds

* Restore github actions

* Restore github actions

* Revert "linter to support go 1.18 (#3739)"

This reverts commit 1fd434d3d1.

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-03-19 16:15:12 +00:00
Alex Sharov
1fd434d3d1
linter to support go 1.18 (#3739) 2022-03-19 10:02:46 +07:00
Alex Sharov
63adf0218a
linter up (#3672) 2022-03-10 12:20:20 +07:00
Alex Sharov
16cea91422
add nosqlite tag (#3652)
* add nosqlite tag

* save

* save

* save
2022-03-07 14:26:13 +00:00
battlmonstr
90b52929c6
Makefile: allow command-specific go.mod files (#3641)
The command builds were always using the root go.mod.
Adding cmd/mycmd/go.mod produced an "package not found" error.

This changes the build to run in the cmd/mycmd directory:
* If cmd/mycmd/go.mod is present, it is used.
* Otherwise it builds the main package using the root go.mod as before.
2022-03-04 07:47:09 +07:00
battlmonstr
8b820a1cbe
Makefile: refactor cmd targets. (#3614)
Refactor cmd targets to use a common implicit rule recipe.
Change "make all" to include them all.
2022-02-24 15:10:46 +00:00
battlmonstr
ffdf02bf29
Makefile: silence a few build messages. (#3578)
Silence non-important comments in the "make erigon" output.
2022-02-22 18:17:50 +00:00
alex.sharov
b5a925d6b6 remove "golangci-lint cache clean" from "make clean" 2022-02-14 11:12:05 +07:00
Alex Sharov
8a4a7d7664
Mdbx: more 4tb fixes (#3351) 2022-01-31 16:59:49 +07:00
Alex Sharov
afbf083242
fix makefile deps on submodules (#3383) 2022-01-31 12:43:48 +07:00
alex.sharov
bd0052d422 disable mdbx assertions 2022-01-23 15:03:20 +07:00