Skip to content

Commit

Permalink
Merge pull request #14 from dynamiccreator/dynamiccreator-TESTNET-par…
Browse files Browse the repository at this point in the history
…ameter

server testnet parameter
  • Loading branch information
dynamiccreator authored Jun 20, 2021
2 parents 366db89 + 54fca58 commit ba2d6e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = function () {
cnf_username = "";
cnf_password = "";
cnf_read_block_height = 1700000; //(0 for sync from block 0 or a higher value for quick testing)
cnf_server_mode= "testnet";

//Maria DB
cnf_db_host = "localhost";
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ io.on('connection', socket => {
result.sync_id=sync_id;
result.alias_prices=alias_prices;
result.server_donation_address=cnf_donation_address;
result.server_mode=cnf_server_mode;
socket.emit("server_respond_sync_data",result);
}
else{
Expand Down Expand Up @@ -544,4 +545,4 @@ async function get_blockhash_by_blockheight(list){
var result= await alias_database.get_blockhash_by_blockheight(list);
return result;

}
}

0 comments on commit ba2d6e2

Please sign in to comment.