@ -19,6 +19,15 @@ var ErrSignatureMissing = fmt.Errorf("signature is missing")
@@ -19,6 +19,15 @@ var ErrSignatureMissing = fmt.Errorf("signature is missing")
// required for the attempted operation.
varErrWorkMissing=fmt.Errorf("work is missing")
// BlockSubType represents the sub-type of a block.
typeBlockSubTypeint64
const(
SubTypeReceiveBlockSubType=iota
SubTypeChange
SubTypeSend
)
// Block represents a block in the block chain of an account.
typeBlockstruct{
Typestring`json:"type"`
@ -32,7 +41,7 @@ type Block struct {
@@ -32,7 +41,7 @@ type Block struct {
// This field is not part of the JSON but needed to improve the
// performance of FetchWork and the security of Submit.