Add initial implementation of block tests

* Add blocktest cmd and support for block tests files in
  tests/BlockTests , the launched node does not connect to
  network, resets state with a genesis block from the test file
  and starts the RPC API
This commit is contained in:
Gustav Simonsson
2015-03-04 20:27:09 +01:00
parent 15f491e500
commit 871dfd399b
4 changed files with 377 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func (err *ParentErr) Error() string {
}
func ParentError(hash []byte) error {
return &ParentErr{Message: fmt.Sprintf("Block's parent unkown %x", hash)}
return &ParentErr{Message: fmt.Sprintf("Block's parent unknown %x", hash)}
}
func IsParentErr(err error) bool {