diff --git a/mining.go b/mining.go index b98f89a5..846de39a 100644 --- a/mining.go +++ b/mining.go @@ -369,11 +369,16 @@ type FutureSubmitBlockResult chan *response // Receive waits for the response promised by the future and returns an error if // any occurred when submitting the block. func (r FutureSubmitBlockResult) Receive() error { - _, err := receiveFuture(r) + res, err := receiveFuture(r) if err != nil { return err } + resStr := string(res) + if resStr != "null" { + return errors.New(resStr) + } + return nil }