Skip to content

Impl DatabaseMetrics for DatabaseMock #17073

Open
@emhane

Description

@emhane

Describe the feature

In order to use DatabaseMock as noop database in node builder, it needs to have a noop implementation of DatabaseMetrics.

/// Mock database used for testing with inner `BTreeMap` structure
// TODO
#[derive(Clone, Debug, Default)]
pub struct DatabaseMock {
/// Main data. TODO (Make it table aware)
pub data: BTreeMap<Vec<u8>, Vec<u8>>,
}

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-dbRelated to the databaseA-sdkRelated to reth's use as a libraryD-good-first-issueNice and easy! A great choice to get started

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions