Correct verifychain RPC call return.
The return value should be a boolean for compatibility.
This commit is contained in:
parent
3bfeabb47a
commit
d17a97b485
1 changed files with 1 additions and 3 deletions
|
@ -1194,9 +1194,7 @@ func handleVerifyChain(s *rpcServer, cmd btcjson.Cmd, walletNotification chan []
|
||||||
c := cmd.(*btcjson.VerifyChainCmd)
|
c := cmd.(*btcjson.VerifyChainCmd)
|
||||||
|
|
||||||
err := verifyChain(s.server.db, c.CheckLevel, c.CheckDepth)
|
err := verifyChain(s.server.db, c.CheckLevel, c.CheckDepth)
|
||||||
if err != nil {
|
return err == nil, nil
|
||||||
}
|
|
||||||
return "", nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// parseCmd parses a marshaled known command, returning any errors as a
|
// parseCmd parses a marshaled known command, returning any errors as a
|
||||||
|
|
Loading…
Reference in a new issue