bitcoin/bitcoin — pull request #3457 by laanwj (2013-12-23 06:54:57+00:00)
Title: Explicitly ensure that wallet is unlocked in `importprivkey`

This makes for a more useful error reply (fixes #957).