What do you mean it does not work? did you actually make a text file with the name
get-user-list.php and saved it in (
C:\xampp\htdocs), also is your Apache Server running? I think there is a mistake in the document, file sserver is in this path >
btcpool-master\docker\btcpool\test\btc\cfg. So you need to open
sserver.cfg with a notepad and go to line 107.
list_id_api_url = "http://userlist/userlist.php";
change the path to:
list_id_api_url = "http://get-user-list.php";
This assumes you saved the get-user-list.php file directly in htdocs without a sub-folder, I think the explanation by SwimmingTiger on GitHub is straightforward, he skipped a few things based on the assumption that anyone who gets this far should at least have a basic idea about what they are doing.
*If you don't want to touch the
sserver.cgf you can simply create a new folder with the name '
userlist' inside
C:\xampp\htdoc and then create the
userlist.php inside, this leads to the same result but with a shortcut.
Let me know how it goes.
Thanks for the responding! I created file name "userlist.php" please check my screenshots.
https://imgur.com/v7hu2lmhttps://imgur.com/xqdutVfroot@ubnt:/work/btcpool/build/run_sserver# cat sserver.cfg
#
# stratum server cfg
#
# @since 2016-06
# @copyright btc.com
#
# is using testnet3
testnet = true;
kafka = {
brokers = "127.0.0.1:9092"
};
sserver = {
ip = "0.0.0.0";
port = 3333;
##added
type = "BTC";
default_difficulty = "4000";
max_difficulty = "4000000000000000";
min_difficulty = "40";
# topics
job_topic = "BtcJob";
share_topic = "BtcShare";
solved_share_topic = "BtcSolvedShare";
auxpow_solved_share_topic = "AuxSolvedShare"; # auxpow (eg. Namecoin) solved share topic
rsk_solved_share_topic = "RskSolvedShare";
common_events_topic = "BtcCommonEvents";
# should be global unique, range: [1, 255]
id = 1;
# write last mining notify job send time to file, for monitor
file_last_notify_time = "/work/btcpool/build/run_sserver/sserver_lastnotifytime.txt";
# how many seconds between two share submit
share_avg_seconds = 10;
########################## dev options #########################
# if enable simulator, all share will be accepted. for testing
enable_simulator = true;
# if enable it, all share will make block and submit. for testing
enable_submit_invalid_block = false;
# if enable, difficulty sent to miners is always miner_difficulty. for development
enable_dev_mode = false;
# difficulty to send to miners. for development
miner_difficulty = 0.005;
###################### end of dev options ######################
};
users = {
#
# https://example.com/get_user_id_list?last_id=0
# {"err_no":0,"err_msg":null,"data":{"jack":1,"terry":2}}
#
# There is a demo: https://github.com/btccom/btcpool/issues/16#issuecomment-278245381
#
list_id_api_url = "http://localhost:8000/userlist.php";
};
##added
management = {
enabled = true; # default: true
kafka_brokers = "127.0.0.1:9092"; # "10.0.0.1:9092,10.0.0.2:9092,..."
controller_topic = "BtcManController";
processor_topic = "BtcManProcessor";
auto_switch_chain = false;
};
root@ubnt:/work/btcpool/build/run_sserver#
Also you can see we have PHP started on the server. Also I added the same file in the stratum. Please check output. sserver.cfg has only 77 line of code. (I am using Linux OS for the server).
Yes we made.This assumes you saved the get-user-list.php file directly in htdocs (I don't have htdocs on the Linux server). I started PHP with -s lightweight server.