Roy Crihfield
981bfb5895
Implements https://github.com/cerc-io/go-ethereum/issues/319 With this we can perform a single pass to process updates. Also * refactor code structure around single-pass iteration * refactor builder metrics to match new set of functions * fix unit tests by running sequentially * update ipld-eth-db in compose * factor out fixture data into external module * some CI updates Reviewed-on: #11
24 lines
564 B
Makefile
24 lines
564 B
Makefile
MOCKGEN ?= mockgen
|
|
MOCKS_DIR := $(CURDIR)/test_helpers/mocks
|
|
|
|
mocks: $(MOCKS_DIR)/gen_backend.go
|
|
.PHONY: mocks
|
|
|
|
$(MOCKS_DIR)/gen_backend.go:
|
|
$(MOCKGEN) --package mocks --destination $@ \
|
|
github.com/openrelayxyz/plugeth-utils/core Backend,Downloader
|
|
|
|
docker-image: mocks
|
|
docker build . -t "cerc/plugeth-statediff:local" \
|
|
--build-arg GIT_VDBTO_TOKEN
|
|
.PHONY: docker-image
|
|
|
|
# Local build
|
|
BUILD_FLAGS := --trimpath
|
|
|
|
plugin: build/statediff.so
|
|
.PHONY: plugin
|
|
|
|
build/statediff.so: ./**/*.go
|
|
go build --tags linkgeth --buildmode=plugin -o $@ $(BUILD_FLAGS) ./main
|