Skip to content

Make the transaction-cache initialization faster #5355

Closed
@lurais

Description

@lurais

Rationale

At present, it takes about 35s to start the node, and it takes 25 to 30s to load the transaction cache in the node start period.
And the bloom filter is used as the transaction cache actually.
So it is expected to shorten the node start time by loading the bloom filter faster.

Why should this feature exist?
1.To make the node start faster.

Implementation

1.The node writes the bloom filter to the disk when the kill -15 signal is received.
2.Load the bloom filter into the ram if the bloom filter file is existed and can be opened normally,
or build the transaction cache from recent 65536 blocks like before.

Additional information

kill -15 is required

Related PRs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions