forked from cerc-io/ipld-eth-server
d5c2ab33fc
= Add eth_node_fingerprint to block that can be imitated by both hot and cold imports - Only sync missing blocks (blocks that are missing or don't share a fingerprint) on cold import - Set block is_final status after import
15 lines
204 B
Go
15 lines
204 B
Go
package fs
|
|
|
|
import "io/ioutil"
|
|
|
|
type Reader interface {
|
|
Read(path string) ([]byte, error)
|
|
}
|
|
|
|
type FsReader struct {
|
|
}
|
|
|
|
func (FsReader) Read(path string) ([]byte, error) {
|
|
return ioutil.ReadFile(path)
|
|
}
|