From e9e83b6158ec9ab22944f54d9d94bf00b8076e54 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 2 Feb 2018 14:46:39 +0200 Subject: [PATCH] airdropH --- iguana/exchanges/beertest | 3 +++ iguana/exchanges/mm.c | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 iguana/exchanges/beertest diff --git a/iguana/exchanges/beertest b/iguana/exchanges/beertest new file mode 100755 index 000000000..f0b08a985 --- /dev/null +++ b/iguana/exchanges/beertest @@ -0,0 +1,3 @@ +source userpass +curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"autoprice\",\"base\":\"BEER\",\"rel\":\"KMD\",\"fixed\":0.777,\"margin\":0.00001}" + diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index db8bc57b7..9d401a453 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -190,6 +190,32 @@ int main(int argc, const char * argv[]) printf("done vanitygen.(%s) done %u elapsed %d\n",argv[2],(uint32_t)time(NULL),(uint32_t)time(NULL) - timestamp); exit(0); } + else if ( argv[1] != 0 && strcmp(argv[1],"airdropH") == 0 && argv[2] != 0 ) + { + FILE *fp; uint8_t addrtype,rmd160[20]; char buf[256],coinaddr[64]; int32_t n,i; char *flag; + if ( (fp= fopen(argv[2],"rb")) != 0 ) + { + while ( fgets(buf,sizeof(buf),fp) > 0 ) + { + if ( (n= (int32_t)strlen(buf)) > 0 ) + buf[--n] = 0; + flag = 0; + for (i=0; i