Added blocknotify C script to readme

This commit is contained in:
Matt 2014-04-08 14:26:45 -06:00
parent eaed9d1e8e
commit 3c4eaaf5ce
2 changed files with 18 additions and 9 deletions

View File

@ -431,7 +431,8 @@ Example: inside `dogecoin.conf` add the line
blocknotify="node scripts/blockNotify.js localhost:8117 mySuperSecurePassword dogecoin %s"
```
Alternatively, you can use a more efficient block notify script written in pure C. Build and usage instructions
are commented in [scripts/blocknotify.c](scripts/blocknotify.c).
#### 3) Start the portal
@ -477,6 +478,7 @@ Credits
* [vekexasia](//github.com/vekexasia) - co-developer & great tester
* [TheSeven](//github.com/TheSeven) - answering an absurd amount of my questions and being a very helpful gentleman
* [UdjinM6](//github.com/UdjinM6) - helped implement fee withdrawal in payment processing
* [Alex Petrov / sysmanalex](https://github.com/sysmanalex) - contributed the pure C block notify script
* Those that contributed to [node-stratum-pool](//github.com/zone117x/node-stratum-pool)

View File

@ -7,17 +7,22 @@
#include <errno.h>
/*
part of NOMP project
optimal block change pool notify in pure c.
(may also work as coin switch)
Simple lightweight & fast.
Contributed by Alex Petrov aka SysMan at sysman.net
# gcc blocknotify.c -o blocknotify
#
# Platforms : Linux,BSD,Solaris (mostly OS independent)
Part of NOMP project
Simple lightweight & fast - a more efficient block notify script in pure C.
Alex Petrov aka SysMan at sysman.net
(may also work as coin switch)
Platforms : Linux,BSD,Solaris (mostly OS independent)
Build with:
gcc blocknotify.c -o blocknotify
Usage in daemon coin.conf
blocknotify="/bin/blocknotify localhost:8117 mySuperSecurePassword dogecoin %s"
// {"password":"notepas","coin":"Xcoin","hash":"d2191a8b644c9cd903439edf1d89ee060e196b3e116e0d48a3f11e5e3987a03b"}
@ -25,6 +30,8 @@
# $Id: blocknotify.c,v 0.1 2014/04/07 22:38:09 sysman Exp $
*/
int main(int argc, char **argv)
{
int sockfd,n;