moopless / stratum-mining-litecoin

This fork is no longer maintained. Please use https://github.com/ahmedbodi/stratum-mining
Other
38 stars 35 forks source link

Remote blocknotify scripts result in RPC call not allowed from your IP. #63

Open nutnut opened 10 years ago

nutnut commented 10 years ago

Hi,

I have a central db/wallet server that runs blocknotify scripts to notify the remote stratum servers of new blocks but i receive the following errors.

"blocknotify: Error during request: RPC call not allowed from your IP"

Any suggestions appreciated.

Nut

nutnut commented 10 years ago

Found the code in here, just commenting it out fixes it or editing to put your IP's in there...

/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/services.py

Seems to ignore the settings in the configs but been too busy to work it out why.

feeleep75 commented 10 years ago

add this to your config file:

ADMIN_RESTRICT_INTERFACE = None
ahmedbodi commented 10 years ago

removed the limitation in my version i'll upload it soon, just a side warning to u guys vardiff is even more flawed than originally thought from what i heard i'll get back to u when i've found out more about it