Created
August 14, 2014 17:06
-
-
Save deoxxa/ef3ff0b6ea040a5746e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Store interface { | |
GetBlockSize(index int) int | |
GetBlockHash(index int) (hash [20]byte, err error) | |
GetBlock(index int, offset int64, block []byte) (n int, err error) | |
SetBlock(index int, offset int64, block []byte) (n int, err error) | |
ValidateBlock(index int) (ok bool, err error) | |
Validate() (bf *bitfield.Bitfield, err error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment