Skip to content

Instantly share code, notes, and snippets.

@deoxxa
Created August 14, 2014 17:06
Show Gist options
  • Save deoxxa/ef3ff0b6ea040a5746e3 to your computer and use it in GitHub Desktop.
Save deoxxa/ef3ff0b6ea040a5746e3 to your computer and use it in GitHub Desktop.
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