BlockchainVotingOrganisation / bc_voting

Repository for Blockchain Voting System (BVS) Typo3 extension.
http://www.blockchain-voting.org
Other
3 stars 1 forks source link

Unable to connect to http://multichain ... #39

Closed luzi41 closed 8 years ago

luzi41 commented 8 years ago

Why does it fail suddenly ...

    /**
     * retrieves data from blockchain
     *
     * @param string $rpcServer
     * @param string $rpcPort
     * @param string $rpcUser
     * @param string $rpcPassword
     * @param string $txid
     * 
     * @return array|string
     */
    public static function retrieveData($rpcServer, $rpcPort, $rpcUser, $rpcPassword, $txid) {
      $data = self::getRpcResult($rpcServer, $rpcPort, $rpcUser, $rpcPassword)->getrawtransaction($txid, 1);

        if (is_string($data['error'])) { return $data; }
        else { return hex2bin($data['data'][0]); }
    }
luzi41 commented 8 years ago

NO error. Just wrong input...