Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

qwertycoin-org/qwertycoin-faucet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Qwertycoin Faucet Installation##

This faucet runs on a linux environment with PHP and MYSQL, and it was tested on Ubuntu 15.04 with PHP 5.6.4 and MariaDB 5.5.

Faucet is set to work on the same server as qwertycoin wallet and qwertycoin daemon.

First of all you need to create a new database and create this table on it for the faucet to save all requests:

CREATE TABLE `payouts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `ip_address` varchar(45) NOT NULL,
  `payout_amount` float NOT NULL,
  `payout_address` varchar(100) NOT NULL,
  `payment_id` varchar(75) NOT NULL,
  `timestamp` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

ALTER TABLE `payouts`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `payouts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

After you create database you need to edit config.php with all your custom parameters and also database information.

Now for faucet to communicate with qwertycoin wallet you need to run simplewallet as this:

./simplewallet --wallet-file=walletName --pass=password --rpc-bind-port=18070 --rpc-bind-ip=127.0.0.1

Note: Run this command after you already created a wallet with simplewallet commands.

  • wallet.bin needs to be the wallet file name that you enter when you created your wallet.
  • password needs to be the password to open your wallet
  • rpc-bind-port and rpc-bind-ip can be changed if so, you need to edit index.php and request.php (Please don't edit, as you may end opening the wallet rpc to the public)

And qwertycoin daemon as this:

./qwertycoind --restricted-rpc --enable-cors=*  --enable-blockchain-indexes --rpc-bind-ip=0.0.0.0

To keep bytecoind and simplewallet on background you can use screen command.

Advertisements can be edited on the index.php they are between this lines for an easy location:

       <!-- ADS ADS ADS ADS ADS ADS ADS ADS ADS -->
       <!-- ADS ADS ADS ADS ADS ADS ADS ADS ADS -->

After all this steps you should be ready to go ;)

Releases

No releases published

Packages

No packages published

Languages

  • PHP 86.3%
  • CSS 13.6%
  • JavaScript 0.1%