We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9077818 commit dfc9873Copy full SHA for dfc9873
database/database.go
@@ -103,15 +103,12 @@ type BlockDatabase interface {
103
// ReadBlock retrieves a block by its height.
104
ReadBlock(height uint64) ([]byte, error)
105
106
- // ReadHeader retrieves only the header portion of a block by its height.
107
- ReadHeader(height uint64) ([]byte, error)
108
-
109
- // ReadBody retrieves only the body portion (excluding header) of a block by its height.
110
- ReadBody(height uint64) ([]byte, error)
111
112
// HasBlock checks if a block exists at the given height.
113
HasBlock(height uint64) (bool, error)
114
+ // Inspect returns a detailed report of the block database.
+ Inspect() (string, error)
+
115
// Close closes the block database.
116
Close() error
117
}
0 commit comments