eth, eth/downloader, miner: use download events to check miner start

This commit is contained in:
obscuren
2015-05-15 00:43:00 +02:00
parent 0f76a1c6df
commit b71091e337
6 changed files with 83 additions and 18 deletions

View File

@@ -42,8 +42,8 @@ func (err *UncleErr) Error() string {
return err.Message
}
func UncleError(str string) error {
return &UncleErr{Message: str}
func UncleError(format string, v ...interface{}) error {
return &UncleErr{Message: fmt.Sprintf(format, v...)}
}
func IsUncleErr(err error) bool {