I have a use-case where I'd only need to be monitoring the mempool transactions and recently-committed blocks/transactions (the last month's worth of blocks would be sufficient). Is there a way to tell bitcoinjs to not store the whole blockchain, but start from most current instead?
I could create my own "Storage" object for the server that doesn't write anything if the block is older than a month, but I'm pretty sure it would still try to download the whole blockchain every time it connected.
Or is there an even more lightweight bitcoin p2p node implementation that gives this sort of functionality?
(Usage Details: the use case for this is an ecommerce solution; the seller creates a new one-time use payment address (it's never been used before, so we don't care about the whole blockchain history) and tells the user to make a payment to it. Now the back end starts monitoring the bitcoin p2p network for an incoming (unconfirmed) transaction. At that point the site can tell the user the first step of ordering is complete, and move them to a "pending orders" page which long-polls for confirmations on those spends. Recent blocks would be used to track confirmations, and once confirmed, wouldn't be needed any more.)