- rework the function to not log errors but use throw JSONRPCError
- remove a check for IsLocked() that is done in sendtoaddress and sendfrom RPC calls already
- cache GetBalance() return value, because it's possibly used twice
Intended for discussion, also I was thinking about extending our wallet error codes, as most errors in SendMoney use the generic RPC_WALLET_ERROR.