Post
Topic
Board Announcements (Altcoins)
Re: [CENT] Pennies launched
by
barwizi
on 02/01/2014, 08:59:47 UTC
Sorry guys, wanted to post this before new years but forgot :-D
Code:
#!/usr/bin/php
$clientPath "/home/kalgecin/pennies/src/pennies";
$sendToAddress "PC26wxsNJXKi6732uKTmvjkLMQMjZBPzJ3";
$amountPerBatch 50000000.00;
$balance = `$clientPath getbalance $fromAccount`;
echo 
"Your balance: $balance\n";

while(
$balance $amountPerBatch){

echo $balance.' '.`$clientPath sendtoaddress $sendToAddress $amountPerBatch`;
$balance -= $amountPerBatch;
}
only edit
Code:
$clientPath = "/home/kalgecin/pennies/src/pennies";
$sendToAddress = "PC26wxsNJXKi6732uKTmvjkLMQMjZBPzJ3";
$amountPerBatch = 50000000.00;
with your parameters. Tested on linux. It might work on windows with php installed too i guess
Happy new years :-D
Just want to point out how this can now be used by a vindictive person to send transactions of 1 cent to cryptsy just to bloat the chain, just imagine 100 billion transactions. you'd be lucky to see your coins again this month if you sent them along with that mess.


hehehe.....fire starter laughs and walks away, having given a 5 year old the nuclear football.

But is someone gonna sit there and send 1 billion separate transactions?  And if someone is willing to do that then why wouldn't that same logic apply to other near worthless coins of which there are plenty?  TIA.

The script is a fire and forget solution. You run it once and it keeps running until your account is empty. Try it out, transfer with amounts of 1000 from one of your addresses  to the other if you want to see if it works.