Sync only missing blocks on cold import

= 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
This commit is contained in:
Rob Mulholand
2018-05-07 16:38:04 -05:00
parent 5a5e08bd13
commit d5c2ab33fc
31 changed files with 616 additions and 171 deletions
+14
View File
@@ -0,0 +1,14 @@
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)
}