Hello, I am currently extending my service which will now also support payment via. bitcoins and I have a few concerns/questions.
I have implemented my service to support bitcoind in a test network with the accounts feature, but I am starting to have second thoughts about using it in production.
According to Gavin Andresen, this "accounts" feature may or may not be removed in the future. I can
not depend on something that may or may not be removed in a year or two.
Source:
https://www.youtube.com/watch?v=GfMN2rFgowYI'm not too worried about real-time balance updates. I only care that the users balance gets eventually synced (in the worst case max 45-60mins) with their current addresses balance, so that the users can then spend that amount.
Right now the balance of the users gets updated periodically using a cron job every n minutes where "n" is configurable. A cron job every 5-15 minutes is good enough for my needs.
I could use walletnotify etc. to calculate the users balance, but it seems like a lot more work than should be necessary for simply accepting bitcoin payments.
I can not depend on any web services like blockchain, as there would probably be too many requests per hour.
Currently, each user receives a top-up address and an account which they can then send bitcoins to. It then checks the balance of this account with minimum x confirmations and updates my database accordingly. Then when the user wishes to purchase something my server moves funds from that users account to my account, and they then receive the goods.
Any advice?