Bitcoin Forum
July 16, 2024, 01:14:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Payment notifications on SPV  (Read 646 times)
slothbag (OP)
Sr. Member
****
Offline Offline

Activity: 369
Merit: 250



View Profile
February 18, 2013, 04:00:35 AM
 #1

I'd like to set up bitcoin payment notifcations but my VPS cannot run the bitcoind full daemon.  Is it possible to run a SPV client as a daemon/cli process to provide payment notifications with a small process footprint?  BitcoinJ looks like the library of choice but I cannot find any daemon/cli implementation of it.

I realise there are many payment notifcation providers and I will probably give them a try. But running my own SPV daemon would remove that dependancy.

Cheers
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
February 18, 2013, 07:39:31 AM
 #2

This is a common request. There's no out of the box way to do it but if you want to help build one I'll help you with the design work. Right now bitcoinj is quite mobile focused and the wallet doesn't scale all that well. Somebody stepping up to make it work better for the "nano merchant" use case would be appreciated.
Jouke
Sr. Member
****
Offline Offline

Activity: 426
Merit: 250



View Profile WWW
February 18, 2013, 07:58:13 AM
 #3

What do you mean with: "the wallet doesn't scale all that well".

Koop en verkoop snel en veilig bitcoins via iDeal op Bitonic.nl
ThomasV
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
February 18, 2013, 08:34:48 AM
 #4

Electrum has a merchant script that does that.
checkout scripts/merchant.py
https://github.com/spesmilo/electrum/tree/master/scripts

Electrum: the convenience of a web wallet, without the risks
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1129


View Profile
February 18, 2013, 09:41:42 AM
 #5

What do you mean with: "the wallet doesn't scale all that well".

For instance, it has to be held in RAM. Right now there's no way (without modifying the code a lot) to hold a huge wallet in a database.

Even if there was, the wallet code is written for simplicity and correctness, not speed. It has a bunch of quadratic and worse algorithms in it. So if you have a giant wallet creating spends would take a long time, things like that.

Nothing that can't be fixed, it's just not been a priority.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!