BitcoinRPC getwork and sendshare