Skip to content

Commit

Permalink
BDK windows compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane B committed Mar 18, 2013
1 parent 33b38e1 commit b986e9f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions BDKp_library.php
Expand Up @@ -25,11 +25,14 @@
=================================================
Begin loading necessary dependencies to run this script (Probubly don't need to touch this, just make sure you know what your doing)
*/
//Working directory
$dir_filename = dirname(__FILE__);

//Include configuration file required to connect to Bitcoind
include("config.php");
include($dir_filename."/config.php");

//Include the JSON-RPC PHP script (Used for querying Bitcoind)
include("dependencies/jsonRPCClient.php");
include($dir_filename."/dependencies/jsonRPCClient.php");



Expand Down Expand Up @@ -65,6 +68,8 @@ function bitcoin_open_connection(){
/* Return status codes
-1 = Failure to open connection
1 = Success
101 = BTC connection not properly configured.
*/
//Make sure we have all nessecary information to make a connection
if($btcclient["host"] != '' && $btcclient["user"] != '' && $btcclient["pass"] != '' && $btcclient["https"] != '' && $btcclient["port"] > 0){
Expand All @@ -80,6 +85,8 @@ function bitcoin_open_connection(){
//Return success code
$output["return_status"] = 1;
}
}else{
$output["return_status"] = 101;
}


Expand Down Expand Up @@ -1431,4 +1438,4 @@ function bdk_prove_coin_ownership($bitcoin_address='', $step=1, $step_2_signatur
$bdk_integrity_check = '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';
/********************* END CLEAR CHECKSUM MEMORY *************/

?>
?>

0 comments on commit b986e9f

Please sign in to comment.