Overtorment / Cashier-BTC

💰 Self-hosted Bitcoin payment gateway (฿)
286 stars 101 forks source link

Makes huge number of requests to bitcore, even when no requests are made? #3

Closed markasoftware closed 7 years ago

markasoftware commented 7 years ago

After starting up cashier, in the bitcore logs it is reporting many requests per second trying to find address information for the same several addresses. Here is a small portion of the logs:

[2017-03-26T02:45:12.546Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1FRVpkvSPeYfuDoW1i6peK9GjTuBQydi7T?noTxList=1" 200 239 0.499 "-" 
[2017-03-26T02:45:12.614Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/19WwaMfB1bmjMSJkFCCfrFFqiVrHwKzM2P?noTxList=1" 200 239 0.521 "-" 
[2017-03-26T02:45:12.687Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1Nd2AGwSkNFwYQav6bQimtnN8faa5XD6Gx?noTxList=1" 200 239 0.527 "-" 
[2017-03-26T02:45:12.757Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1JPpt6YD5dkFB87cDGiFRoDXxhKcmnqBhv?noTxList=1" 200 239 0.508 "-" 
[2017-03-26T02:45:12.821Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1LayKNbHyf5MVqRe9GV1bsN2EfBxKUE27A?noTxList=1" 200 239 0.498 "-" 
[2017-03-26T02:45:12.884Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1Q8M4oRCPiQ1qdmcSHMFP5HUtoeP9o35pZ?noTxList=1" 200 239 0.469 "-" 
[2017-03-26T02:45:12.964Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1NSwBKJBTPQDwiMfHdaGAP1twRXDqzdFUn?noTxList=1" 200 239 0.469 "-" 
[2017-03-26T02:45:13.037Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/18DcKe8QMwhhMHJXuJKrDzxHDjKtoUG8bz?noTxList=1" 200 239 2.011 "-" 
[2017-03-26T02:45:13.102Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1EsLX2oc8grjSxC6AwbQrewjZnaYMX25wu?noTxList=1" 200 239 0.598 "-" 
[2017-03-26T02:45:13.170Z] info: ::ffff:127.0.0.1 "GET /insight-api/addr/1PBKZBWn2tbmvDMS6t47kTiXPfNyW4ht5e?noTxList=1" 200 239 0.542 "-"

I have never even made any api calls to cashier. Is this normal?

Overtorment commented 7 years ago

In general this is ok, if you made some payment requests, the engine now polls the addressess for funds. Check the database for payment requests made, for example, see document 1PBKZBWn2tbmvDMS6t47kTiXPfNyW4ht5e in your Couchdb. This happens in worker.js

markasoftware commented 7 years ago

Ok, thank you.