finist4x
Legendary
Offline
Activity: 1696
Merit: 1016
|
|
August 25, 2017, 02:29:05 PM |
|
|
|
|
|
gatuso
Newbie
Offline
Activity: 7
Merit: 0
|
|
August 25, 2017, 02:35:02 PM Last edit: August 25, 2017, 02:53:57 PM by gatuso |
|
Test script. You need PHP installed in OS. CLI mode for crontab in Linux wallet. WEB mode for windows with wamp/xamp. Also you need this file: https://raw.githubusercontent.com/aceat64/EasyBitcoin-PHP/master/easybitcoin.php<?php require_once('easybitcoin.php');
$rpcuser = 'x'; $rpcpass = 'y'; $port = '34001'; $rpcip = '127.0.0.1';
$random_addresses = array( 'INSERT HERE SOME WALLET ADDRESS', 'INSERT HERE SOME WALLET ADDRESS', 'INSERT HERE SOME WALLET ADDRESS', 'INSERT HERE SOME WALLET ADDRESS' ); $bitcoin = new Bitcoin($rpcuser,$rpcpass,$rpcip,$port); $bitcoin->getaddressesbyaccount(""); $address=null; $amount = 2; $loop_times = 1; $random = 0;
//*********************WEB********************* if (PHP_SAPI != 'cli') { if( isset($_REQUEST['address']) && $_REQUEST['address']!="") $address = $_REQUEST['address']; if( isset($_REQUEST['amount']) && $_REQUEST['amount']>0) $amount = $_REQUEST['amount']; if( isset($_REQUEST['loop_times']) && $_REQUEST['loop_times']>0) $loop_times = $_REQUEST['loop_times']; if( isset($_REQUEST['random']) && $_REQUEST['random']=='true') $random = 1; if( isset($_REQUEST['addrs']) && $_REQUEST['addrs']!="") { $temp = explode(',',$_REQUEST['addrs']); if(count($temp)>0)$random_addresses = $temp; } $BR="<BR/>"; ?> <html> <head> <script> function add() { var total = document.getElementById('totaladdr').value; var div = document.getElementById('addrs');
var node = document.createElement("div"); node.innerHTML = '<div>Add Wallet Address<input id="address'+total+'" type="text" placeholder="address'+total+'"></div>'; div.appendChild(node); document.getElementById('totaladdr').value = parseInt(total)+parseInt(1); } function run() { var total = document.getElementById('totaladdr').value; var addrs=''; for(var i=0;i<total;i++) { if(document.getElementById('address'+i)) { if(i>0)addrs+=','; addrs+=document.getElementById('address'+i).value; } } var url = 'test.php?'+'address='+document.getElementById('address').value +'&amount='+document.getElementById('amount').value +'&loop_times='+document.getElementById('loop_times').value +'&random='+document.getElementById('random').checked +'&addrs='+addrs; document.getElementById('add').disabled = true; document.getElementById('run').disabled = true; document.getElementById('run').innerHTML='RUNNIG'; window.location = url; } function loaded() { document.getElementById('add').disabled = false; document.getElementById('run').disabled = false; } </script> </head> <body onload='loaded()'> <div> Amount to send<input id="amount" type="text" placeholder="amount" value="<?php echo $amount;?>"> </div> <div> Loop Times<input id="loop_times" type="text" placeholder="loop times" value="<?php echo $loop_times;?>"> </div> <div> Address to send<input id="address" type="text" placeholder="address" value="<?php echo $address;?>"> </div> <div> Random Address<input autocomplete=off id="random" type="checkbox" <?php if($random) echo "checked";?> placeholder="use random address"> </div> <div id='addrs'> <?php for($i=0; $i<count($random_addresses); $i++) { echo" <div> Add Wallet Address<input autocomplete=off id='address$i' type='text' placeholder='address$i' value=".$random_addresses[$i]."> </div> "; } ?> </div> <?php echo "<input autocomplete=off disabled id='totaladdr' type='hidden' value='";echo count($random_addresses); echo "'>"; ?> <button id='add' onclick="add();" disabled>Add address</button> <br/> <button id='run' onclick="run();" disabled>Run again</button> </body> <?php echo $BR; }
//*********************WEB********************* //*********************CLI********************* //$argv[0] name of file //$argv[1] address to send //$argv[2] amount to send //$argv[3] loop times //$argv[4] random addresses (1 or 0) if (PHP_SAPI === 'cli') { if(isset($argv[4]) && $argv[4]==1 && count($random_addresses)>0){ $random = 1; } else if(isset($argv[1])){ $address = $argv[1]; } else if( isset($bitcoin->response["result"][0]) ){ $address = $bitcoin->response["result"][0]; } else{ echo "No address, no send"; die; }
if(isset($argv[2]) && $argv[2]>0){ $amount = $argv[2]; }
if(isset($argv[3]) && $argv[3]>0){ $loop_times = $argv[3]; } $BR=PHP_EOL; } //*********************CLI*********************
echo 'Begin Sending'; echo $BR;
$tx = array();
for($i=0;$i<$loop_times;$i++) { if($random && count($random_addresses)>0) $address = $random_addresses[array_rand($random_addresses)]; if($address!='') { echo $BR.'Sending to address:'.$address.' | Amount:'.$amount; $bitcoin->sendtoaddress($address,$amount); echo $BR."TX:".$bitcoin->response["result"]; array_push( $tx,$bitcoin->response["result"] ); } else echo 'Cannot send to empty address'; echo $BR; } echo $BR; echo 'Sent'; echo $BR; echo 'TX:'; echo $BR; var_dump($tx); echo $BR; echo 'End'; ?>
|
|
|
|
cryptocan
|
|
August 25, 2017, 04:06:50 PM |
|
The new TESTNET wallet (with bugs fixed) has been compiled and another hard reset has just occurred. This means that we must wait for block 122 before transactions can start again and this is about 4 hours away... So, we will be picking things up again after some sleeps. Thank you all for your patience as we work though this very interesting phase of XTRABYTES development!! Dave, Borz and the TESTNET Crew!! does the static node works on windows? if it works I can join the test net to start a static node on my VM
|
|
|
|
dotmanifest
Newbie
Offline
Activity: 17
Merit: 0
|
|
August 25, 2017, 04:16:31 PM |
|
The new TESTNET wallet (with bugs fixed) has been compiled and another hard reset has just occurred. This means that we must wait for block 122 before transactions can start again and this is about 4 hours away... So, we will be picking things up again after some sleeps. Thank you all for your patience as we work though this very interesting phase of XTRABYTES development!! Dave, Borz and the TESTNET Crew!! https://xtrabytes.global/images/REALBYTE.jpgdoes the static node works on windows? if it works I can join the test net to start a static node on my VM I think it should once they release it to all the public testers
|
|
|
|
gosker
Newbie
Offline
Activity: 18
Merit: 0
|
|
August 25, 2017, 04:33:25 PM |
|
Been watching xby for some weeks now and joined the testnet group on slack recently. Curious to see how far this project will go.
|
|
|
|
WpW420
Newbie
Offline
Activity: 28
Merit: 0
|
|
August 25, 2017, 05:48:21 PM |
|
Great News waiting for new wallet to test it. Long Life XBY just bought 97 of em and going to go download wallet now
|
|
|
|
smokim87
|
|
August 25, 2017, 05:57:29 PM |
|
The new TESTNET wallet (with bugs fixed) has been compiled and another hard reset has just occurred. This means that we must wait for block 122 before transactions can start again and this is about 4 hours away... So, we will be picking things up again after some sleeps. Thank you all for your patience as we work though this very interesting phase of XTRABYTES development!! Dave, Borz and the TESTNET Crew!! This week just keeps getting better and better. I admit, I don't know much about how to test a network, but there are many in the Slack just chomping at the bit to run scripts on this thing. It's exciting to just to be there and see people coming together to start thins thing. I am one of those chomping at the bit. I want to punish this baby. From what I've seen we have a script that is capable of pushing the network, but I invite anyone with scripting/networking experience to look over what has been written so far and we can work to really put the TestNet through it's paces. Here are the script(s), feel free to suggest any alterations: xby-bot.py - written by smokim87 import requests import json def main(): # default RPC port for XBY rpc_port = 35001 # RPC credentials, as specified in xtrabytes.conf rpc_user = "testuser" rpc_password = "testpassword" # Generating the url from the specified credentials url = "http://" + rpc_user + ":" + rpc_password + "@localhost:" + str(rpc_port) # Setting the header headers = {'content-type': 'application/json'} # Specifying the recipients wallets. Although it might be easier to read from file/DB recipients = ['address1', 'address2', 'address3'] # Set amount amount_to_send = 1000 # Loop over the receiving addresses for recipient in recipients: # Example of sending the money transfer command payload = { "method": "sendtoaddress", "params": [recipient, amount_to_send], "jsonrpc": "2.0", "id": 0, } # Send the RPC request response = requests.post( url, data=json.dumps(payload), headers=headers).json() # Print the Response print(response.json()['result']) if __name__ == "__main__": main() There is also another: testnet.php - written by gatuso Ok guys you need to get this file:
https://raw.githubusercontent.com/aceat64/EasyBitcoin-PHP/master/easybitcoin.php
Save it to a folder. In the same folder save the code in a file testnet.php:
<?php require_once('easybitcoin.php');
$rpcuser = 'x'; $rpcpass = 'y'; $port = '35001'; $rpcip = '127.0.0.1';
//$argv[0] name of file //$argv[1] address to send //$argv[2] amount to send //$argv[3] loop times
echo 'Begin'; echo '<br><br>'; echo '<br><br>'; $bitcoin = new Bitcoin($rpcuser,$rpcpass,$rpcip,$port); $bitcoin->getaddressesbyaccount(); $address=null;
if(isset($bitcoin->response["result"][0])) $address=$bitcoin->response["result"][0];
if(isset($argv[1])) $address = $argv[1]; else if(isset($address)) $address = $bitcoin; else{ echo "No address, no send"; die; }
if(isset($argv[2])) $amount = $argv[2]; else $amount = 2;
if(isset($argv[3])) $loop_times = $argv[3]; else $loop_times = 1;
echo 'Sending'; echo '<br><br>'; $tx = array();
for($i=0;$i<$loop_times;$i++) { $bitcoin->sendtoaddress($address,$amount); array_push( $tx,$bitcoin->response["result"] ); }
echo 'Sent'; echo '<br><br>'; echo 'TX:'; echo '<br><br>'; var_dump($tx); echo '<br><br>'; echo '<br><br>'; echo 'End'; ?>
Then you can open shell and run: php testnet.php <address> <amount> <loop_times> You need PHP installed and configured in your OS. I did this just now, not sure gonna work. Again, if you have a script you think will test/punish the network, come forward in Slack and we will look at running it. Otherwise if you can think of any additions alterations to the code above then please don't be shy! This is an exciting time to be involved guys and it is very much a community effort at the moment. Deserving of a BUMP. I don't know how to write scripts, but I'm sure there are many here who do know howThe excitement is quite palpable. You can feel it. Happy and grateful to be here with everyone. Nice! Just want to give Credit to jasperrr91 from XBY slack for creating the python bot for me. I take no credit for it, all credit goes to him
|
|
|
|
eggsandspamm
|
|
August 25, 2017, 06:29:41 PM |
|
Great updates here! Buy support is building so I think XBY about to make another run up.
|
|
|
|
dotmanifest
Newbie
Offline
Activity: 17
Merit: 0
|
|
August 25, 2017, 06:43:46 PM |
|
Great updates here! Buy support is building so I think XBY about to make another run up.
We need more meme triangles ►
|
|
|
|
Mezmon
Member
Offline
Activity: 91
Merit: 10
|
|
August 25, 2017, 06:50:50 PM |
|
Exciting stuff going on here for sure! Been holding since early July. Joined slack early August and been helping out with testnet for the past week. Good stuff here and great communication from devs!
|
|
|
|
AlUz
|
|
August 25, 2017, 06:55:19 PM |
|
Great updates here! Buy support is building so I think XBY about to make another run up.
Its nice to see buy support is building on Pia and C-cex. So I think XBY about to make another run up TOO .
|
|
|
|
pyTHONG
Newbie
Offline
Activity: 10
Merit: 0
|
|
August 25, 2017, 07:50:06 PM |
|
Great updates here! Buy support is building so I think XBY about to make another run up.
Its nice to see buy support is building on Pia and C-cex. So I think XBY about to make another run up TOO . Absolutely, we're stabilizing at around the 600 mark. With all the updates, improvements to xby, the rebranding and all the other goodies this will expand dramatically in the coming months. Just got more because I do not want to look back and regret not purchasing another valuable asset.
|
|
|
|
22justin
|
|
August 25, 2017, 08:18:36 PM |
|
Xtrabytes and Shift are my two favorite coins in the 100-200 market cap range. Expecting 10x gains on both. Great future ahead
|
Looking for the next 10x Small Cap for Q2 2018? $XBY (dApp Platform, New PoSign Algorithm), $SHIFT (dPoS Decentralized Web 3.0 on IFPS) & $BLOCK (Blockchain Agnostic DeX, atomic swaps) Twitter: @Vancitycrypto
|
|
|
dotmanifest
Newbie
Offline
Activity: 17
Merit: 0
|
|
August 25, 2017, 08:37:07 PM |
|
Great updates here! Buy support is building so I think XBY about to make another run up.
Its nice to see buy support is building on Pia and C-cex. So I think XBY about to make another run up TOO . Absolutely, we're stabilizing at around the 600 mark. With all the updates, improvements to xby, the rebranding and all the other goodies this will expand dramatically in the coming months. Just got more because I do not want to look back and regret not purchasing another valuable asset. Definitely agree, once the website comes online with the roadmap and whitepaper, we're set to go!
|
|
|
|
enkiamo
|
|
August 25, 2017, 09:31:54 PM |
|
Xtrabytes and Shift are my two favorite coins in the 100-200 market cap range. Expecting 10x gains on both. Great future ahead
Both are about the surest 10x gains I would think.
|
|
|
|
fishfishfish313
|
|
August 25, 2017, 10:09:11 PM |
|
The new TESTNET wallet (with bugs fixed) has been compiled and another hard reset has just occurred. This means that we must wait for block 122 before transactions can start again and this is about 4 hours away... So, we will be picking things up again after some sleeps. Thank you all for your patience as we work though this very interesting phase of XTRABYTES development!! Dave, Borz and the TESTNET Crew!! This week just keeps getting better and better. I admit, I don't know much about how to test a network, but there are many in the Slack just chomping at the bit to run scripts on this thing. It's exciting to just to be there and see people coming together to start thins thing. I am one of those chomping at the bit. I want to punish this baby. From what I've seen we have a script that is capable of pushing the network, but I invite anyone with scripting/networking experience to look over what has been written so far and we can work to really put the TestNet through it's paces. Here are the script(s), feel free to suggest any alterations: xby-bot.py - written by smokim87 import requests import json def main(): # default RPC port for XBY rpc_port = 35001 # RPC credentials, as specified in xtrabytes.conf rpc_user = "testuser" rpc_password = "testpassword" # Generating the url from the specified credentials url = "http://" + rpc_user + ":" + rpc_password + "@localhost:" + str(rpc_port) # Setting the header headers = {'content-type': 'application/json'} # Specifying the recipients wallets. Although it might be easier to read from file/DB recipients = ['address1', 'address2', 'address3'] # Set amount amount_to_send = 1000 # Loop over the receiving addresses for recipient in recipients: # Example of sending the money transfer command payload = { "method": "sendtoaddress", "params": [recipient, amount_to_send], "jsonrpc": "2.0", "id": 0, } # Send the RPC request response = requests.post( url, data=json.dumps(payload), headers=headers).json() # Print the Response print(response.json()['result']) if __name__ == "__main__": main() There is also another: testnet.php - written by gatuso Ok guys you need to get this file:
https://raw.githubusercontent.com/aceat64/EasyBitcoin-PHP/master/easybitcoin.php
Save it to a folder. In the same folder save the code in a file testnet.php:
<?php require_once('easybitcoin.php');
$rpcuser = 'x'; $rpcpass = 'y'; $port = '35001'; $rpcip = '127.0.0.1';
//$argv[0] name of file //$argv[1] address to send //$argv[2] amount to send //$argv[3] loop times
echo 'Begin'; echo '<br><br>'; echo '<br><br>'; $bitcoin = new Bitcoin($rpcuser,$rpcpass,$rpcip,$port); $bitcoin->getaddressesbyaccount(); $address=null;
if(isset($bitcoin->response["result"][0])) $address=$bitcoin->response["result"][0];
if(isset($argv[1])) $address = $argv[1]; else if(isset($address)) $address = $bitcoin; else{ echo "No address, no send"; die; }
if(isset($argv[2])) $amount = $argv[2]; else $amount = 2;
if(isset($argv[3])) $loop_times = $argv[3]; else $loop_times = 1;
echo 'Sending'; echo '<br><br>'; $tx = array();
for($i=0;$i<$loop_times;$i++) { $bitcoin->sendtoaddress($address,$amount); array_push( $tx,$bitcoin->response["result"] ); }
echo 'Sent'; echo '<br><br>'; echo 'TX:'; echo '<br><br>'; var_dump($tx); echo '<br><br>'; echo '<br><br>'; echo 'End'; ?>
Then you can open shell and run: php testnet.php <address> <amount> <loop_times> You need PHP installed and configured in your OS. I did this just now, not sure gonna work. Again, if you have a script you think will test/punish the network, come forward in Slack and we will look at running it. Otherwise if you can think of any additions alterations to the code above then please don't be shy! This is an exciting time to be involved guys and it is very much a community effort at the moment. Deserving of a BUMP. I don't know how to write scripts, but I'm sure there are many here who do know howThe excitement is quite palpable. You can feel it. Happy and grateful to be here with everyone. Nice! Just want to give Credit to jasperrr91 from XBY slack for creating the python bot for me. I take no credit for it, all credit goes to him Thanks for your contributions guys!!
|
I'll one shot you with the Wingman from the top of Skulltown - Apex
|
|
|
eggsandspamm
|
|
August 25, 2017, 11:15:47 PM |
|
Super pumped to get this testnet scaled up to full power!
|
|
|
|
LostWords
|
|
August 25, 2017, 11:38:07 PM |
|
Yeah, the same. I've read a lot already about the speed, the amount of transactions and what not on the Slack. The couple testers were like superpumped/hyped exciting
|
|
|
|
PeoplePower
Newbie
Offline
Activity: 55
Merit: 0
|
|
August 25, 2017, 11:43:53 PM |
|
Did C-Cex Exchange ever refund the original scammed ICO investors who had invested in the scam ICO, after Borzalom and CCRevolution rescued the XBY blockchain? If so, could anyone with direct knowledge or evidence confirm this as a fact?
|
|
|
|
cryptocan
|
|
August 26, 2017, 12:01:20 AM |
|
Did C-Cex Exchange ever refund the original scammed ICO investors who had invested in the scam ICO, after Borzalom and CCRevolution rescued the XBY blockchain? If so, could anyone with direct knowledge or evidence confirm this as a fact?
Based on what I remember, I think everyone got the same amount of coin they bought from the ICO in the new chain
|
|
|
|
|