Commit graph

886 commits

Author SHA1 Message Date
Tanguy Pruvot
07ff36c866 stratum: reduce the client auth rpc calls (#111) 2017-08-30 14:55:00 +02:00
Tanguy Pruvot
b21098c037 "yiimp coin SYM generated" command for maintenance checkups
can be useful if blocknotify is not working or if the backend had issues..

basically search for missed generated blocks.. and create them if the second param is set

Note: to use with care, old blocks are purged from the db after some time...
2017-08-30 13:53:50 +02:00
Gerko de Roo
aa56520b70 stratum: update makefile (make clean)
make clean also cleans stratum/algos/ar2 folder.
2017-08-28 19:12:47 +02:00
Tanguy Pruvot
15cee4797d c-cex: implement getmarketsummaries to reduce api calls 2017-08-24 16:40:01 +02:00
Tanguy Pruvot
046e24ad79 framework: remove an extra php end tag
may not be used, but just in case, prevent a leading space
2017-08-24 16:19:53 +02:00
Tanguy Pruvot
369b6530a1 difficulty: force int type to ceil() for php 7.x 2017-08-24 14:32:48 +02:00
Tanguy Pruvot
e829478835 nova: handle both possibles 'ok' status 2017-08-23 15:21:30 +02:00
Tanguy Pruvot
8c49ab8090 decred: limit payments tx sigops to 990 2017-08-21 15:08:24 +02:00
Tanguy Pruvot
894f2aa901 tradesatoshi: public api to list markets 2017-08-20 17:45:16 +02:00
Tanguy Pruvot
da6d1525ce miners: properly cache rejected shares data 2017-08-17 09:20:59 +02:00
Tanguy Pruvot
dab748ec0c stratum: delete worker after socket shutdown 2017-08-17 07:27:28 +02:00
Tanguy Pruvot
97a1f3148d stratum: ignored shares should be purged too 2017-08-16 13:03:58 +02:00
Tanguy Pruvot
a2b0b7d423 stratum: do not store anonymous invalid shares 2017-08-16 12:06:16 +02:00
Tanguy Pruvot
b539cff940 exchanges: add cryptowatch as possible fallback price source
not used yet, but could be useful to handle secondary fiat (EUR,GBP,CAD,JPY) prices later
2017-08-15 13:49:22 +02:00
Tanguy Pruvot
196507fe04 poloniex: check deposit address before generating one 2017-08-14 12:59:34 +02:00
Tanguy Pruvot
fd77e477b0 Never affect REMOTE_ADDR with HTTP_X_FORWARDED_FOR 2017-08-14 12:46:01 +02:00
hexpool
d9b97ee3bc Update keys.sample.php (#150)
include BTER
2017-08-13 13:05:38 +02:00
Tanguy Pruvot
6afff0c2e5 router: set yiimp url case sensitive 2017-08-10 17:14:46 +02:00
Tanguy Pruvot
bbaf7b79c6 stratum: reduce socket timeouts to fight zombie miners
a normal socket send op is < 1ms unless something happened to this
socket connection, generally a permanent disconnect...
2017-08-09 08:20:38 +02:00
Tanguy Pruvot
90a100462d rpc: dissallow all wallet rpc methods containing key 2017-08-05 03:37:05 +02:00
Tanguy Pruvot
44aa14ddf7 admin: prevent ip spoofing for admin url 2017-08-05 02:36:34 +02:00
Tanguy Pruvot
91fdf629b4 Revert "admin: prevent ip spoofing for admin routes"
This reverts commit e3ed4a75b9.

Not the right place to check this header...
2017-08-05 02:31:28 +02:00
Tanguy Pruvot
e3ed4a75b9 admin: prevent ip spoofing for admin routes 2017-08-04 17:43:48 +02:00
Tanguy Pruvot
9743868290 config: remove 127.0.0.1 from sample config for 37.17.23.254 hacker
To prevent the hack by 37.17.23.254 (.by) who stole funds
from several pools (not mine)

total of 994 DNR stolen and transferred to these addresses
DP38wNb2SbYDeYqkQtE5WjCowKhMb1GR4q
DKDY5XWxzoPfLoJ1XXT7YWSneJ9sMw3FxG
DF9ZD91iQDMAegSCzbVrvPRaZrDXCgkurH
DCeeCazTExun2AkaM1Q2BuzNe8AwW2KZHX

total of 74209 SIGT stolen and transferred to these addreses
B557LL3vQhmxgRsCeRqAHpPBB7WRrMgfFA
BPDfVHVfKawJsVyK9gjkZ8DNsYgMjZyEAh
BTAGK33fvjhmfUzpEZu6GZssGqWXxrhU9o
user was mining to DMKRadxGRxRN9Hr8J9Wo3De2REH9mHu3Ew

The stealer had the same IP on the 3 pools who reported me infos
with activity from the 27th july 2017 until today
2017-08-04 15:17:22 +02:00
Tanguy Pruvot
777f39314c debug: show client ip of bad requests 2017-08-04 06:06:24 +02:00
Tanguy Pruvot
460574c555 benchs: some more AMD APUs and nvidia weird chip names 2017-08-04 06:05:44 +02:00
Tanguy Pruvot
cea296384a triggers: set missing default time values (#147) 2017-08-04 02:29:56 +02:00
Tanguy Pruvot
06078c9f2a stratum: exit/restart on repeated socket failure 2017-08-04 01:41:53 +02:00
Tanguy Pruvot
f6a8b2e1ab bench: the Quadro K620 is also affected by bad power readings 2017-07-31 08:54:58 +02:00
Tanguy Pruvot
7d039a1eea bench: apply a special factor for the 750/750Ti watts (x2)
These devices were the first generation to report Watts and seems
to be divided by 2. Could be because they only monitor the chip itself
like AMD RX series... and not the VRM loss, the memory chips and fans
2017-07-31 08:42:18 +02:00
Tanguy Pruvot
c28ed5b3f8 backend: retry once before disabling coins not answering to getinfo 2017-07-31 08:38:49 +02:00
Tanguy Pruvot
2f39b463b5 cronjob: migrate other scripts to the new console
also remove the need of hardcoded folders in these scripts (/var/web)

and the script alias which doesnt work on all bash systems
2017-07-30 23:01:39 +02:00
Tanguy Pruvot
5f95cc1d7c cron: create a class to handle console threads
for now, only migrate loop2.sh screen task...

todo: blocks.sh and main.sh after more tests
2017-07-29 22:51:47 +02:00
Tanguy Pruvot
f47ec6dd60 user wallet: move hashrate graph above miners
help when using fleet of miners...

also show the workers IP to the admin
2017-07-26 21:30:16 +02:00
Tanguy Pruvot
48b76054f6 pool: show ttf at current coin speed, if mined (yiimp mode) 2017-07-25 20:42:42 +02:00
Tanguy Pruvot
eb6a4e2021 cryptopia: fix error parsing public api 2017-07-25 09:51:00 +02:00
Tanguy Pruvot
38f70c6521 benchs: limit algo columns in overall list + memcache 2017-07-25 09:50:58 +02:00
Tanguy Pruvot
a7ff05d9a5 benchs: move arch column for faster vid google search 2017-07-25 03:39:52 +02:00
Tanguy Pruvot
5c76be812c api: add 24h stats to currencies
share the same sql query as pool tab stats (memcached)
2017-07-25 02:51:53 +02:00
Tanguy Pruvot
6610a04b25 api: reduce wallet api paid amount to the last 24h
to be more accurate than the last 2 months...
2017-07-24 15:28:29 +02:00
Tanguy Pruvot
fe0c1a010a stratum: show the date in reject.log
and remove the block hex.. too big and unreadable
2017-07-23 20:15:41 +02:00
Tanguy Pruvot
2156c0f002 backend: consolidate user shares after 48h
these shares are no more shown in graphes, so sum them in one per worker
2017-07-23 18:18:55 +02:00
Tanguy Pruvot
af58024219 backups: compress after the dump to reduce db locktime 2017-07-23 16:27:10 +02:00
Tanguy Pruvot
c2ff8fdc8c skunk: fix admin bg color + sample config 2017-07-22 07:32:35 +02:00
Tanguy Pruvot
c53ff49a63 Signatum skunk algo
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2017-07-21 11:11:04 +02:00
Tanguy Pruvot
646ea022eb api: coinsmarkets private api and balances
also disable some less used exchanges by default (alcurex, bter, jubi)
to toggle them, see the settings table (need disabled = 0)
2017-07-21 11:05:26 +02:00
Tanguy Pruvot
8f2edf76c6 index: disable links to irc/forum for anonymous yiimp copies 2017-07-21 05:57:02 +02:00
Tanguy Pruvot
30ae9dfa61 cryptopia: fix public api (bad copy paste) 2017-07-21 05:13:10 +02:00
Tanguy Pruvot
fb176db565 cryptopia: handle maintenance and public api errors 2017-07-20 15:07:28 +02:00
Tanguy Pruvot
919ba6d0a2 kraken: handle api exceptions without crash 2017-07-20 15:02:58 +02:00