Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 6a325f4c6a8dacc823a460ba8069105f8f98a26f
https://github.com/conformal/btcd/commit/6a325f4c6a8dacc823a460ba8069105f8f98a26f
Author: Dave Collins <[email protected]>
Date: 2014-05-08 (Thu, 08 May 2014)
Changed paths:
M rpcserver.go
Log Message:
-----------
Improve getwork interaction with regtest mode.
Ordinarily, getwork will return an error if btcd is not connected to any
other peers. This commit relaxes that requirement when running in
regression test mode since it is useful for development purposes.
While here, also improve check which returns an error from getwork is not
current to exclude the check when the best chain height is zero since the
code never believes it is current when at height 0.