Commit Graph
16 Commits
Author SHA1 Message Date
AusIV f9b0ce4e41 Merge pull request #24 from openrelayxyz/merge/v1.10.14
Merge/v1.10.14
2021-12-29 10:36:27 -06:00
AusIV 6030087970 Merge pull request #21 from openrelayxyz/feature/blockTracer
Feature/block tracer
2021-11-29 10:48:44 -06:00
AusIV 75b4d1f625 Merge pull request #18 from openrelayxyz/develop
Release memory leak fix to master
2021-10-29 11:17:34 -05:00
AusIV 191a31a9ff Merge pull request #16 from openrelayxyz/develop
Merge v1.10.11 upstream
2021-10-28 14:36:56 -05:00
AusIV 4acf8d22df Merge pull request #13 from openrelayxyz/updates/1.10.11
Updates/1.10.11
2021-10-28 14:26:41 -05:00
AusIV f18c3be78f Merge pull request #10 from openrelayxyz/feature/tracer-capture-enter
Feature/tracer capture enter
2021-10-26 14:31:45 -05:00
AusIV fe20d6aa05 Merge pull request #14 from openrelayxyz/develop
Fix race condition in ancients hook
2021-10-22 15:03:14 -05:00
AusIV 1bca34f157 Merge branch 'develop' into feature/tracer-capture-enter 2021-10-22 15:02:24 -05:00
AusIV 4e93a957d2 Merge pull request #11 from openrelayxyz/develop
Merging develop into master 1.10.10
2021-10-18 16:57:51 -05:00
AusIV 09d3d9bd1b Merge pull request #9 from openrelayxyz/circleci-tests
circleci: basic tests for all commits
2021-10-18 15:06:05 -05:00
AusIV 6a86c8934a Merge pull request #5 from openrelayxyz/feature/isSynced-improvement
Updated eth/pluginhooks to acoomodate live tracing
2021-10-11 13:48:49 -05:00
AusIV ff201f92c1 Merge pull request #4 from openrelayxyz/feature/isSynced-improvement
Modifications to wrappers and loader forenabling node.attach in utils…
2021-10-11 11:32:57 -05:00
AusIV 97c44a8fe6 Merge pull request #3 from openrelayxyz/feature/state-update-code
Talked with Philip - Merging
2021-09-29 15:51:14 -05:00
AusIV 9446654386 Merge pull request #2 from openrelayxyz/utils-refactor
Utils refactor
2021-09-17 16:12:27 -05:00
AusIV 3ebfeb09fe core/rawdb: fix high memory usage in freezer (#21243)
The ancients variable in the freezer is a list of hashes, which
identifies all of the hashes to be frozen. The slice is being allocated
with a capacity of `limit`, which is the number of the last block
this batch will attempt to add to the freezer. That means we are
allocating memory for all of the blocks in the freezer, not just
the ones to be added.

If instead we allocate `limit - f.frozen`, we will only allocate
enough space for the blocks we're about to add to the freezer. On
mainnet this reduces usage by about 320 MB.
2020-06-19 10:51:37 +03:00
AusIV 069a7e1f8a core/rawdb: stop freezer process as part of freezer.Close() (#21010)
* core/rawdb: Stop freezer process as part of freezer.Close()

When you call db.Close(), it was closing the leveldb database first,
then closing the freezer, but never stopping the freezer process.
This could cause the freezer to attempt to write to leveldb after
leveldb had been closed, leading to a crash with a non-zero exit code.

This change adds a quit channel to the freezer, and freezer.Close()
will not return until the freezer process has stopped.

Additionally, when you call freezerdb.Close(), it will close the
AncientStore before closing leveldb, to ensure that the freezer goroutine
will be stopped before leveldb is closed.

* core/rawdb: Fix formatting for golint

* core/rawdb: Use backoff flag to avoid repeating select

* core/rawdb: Include accidentally omitted backoff
2020-05-11 15:11:17 +03:00