pynode icon indicating copy to clipboard operation
pynode copied to clipboard

SPV mode for pynode

Open amiller opened this issue 11 years ago • 1 comments

pynode runs mostly like a full-validating node, meaning it downloads all of every block, maintains an entire UTXO set, etc.

Especially now that most of pynode is factored out, we might want to have a lite version of pynode, similar to BitcoinJ. This would also be a first step towards light wallet and contract apps.

A lite node should have much less functionality, for example it need not necessarily serve transactions and blocks to other peers, it shouldn't store archival history of blocks or the whole ledger, validate blocks, or even download all the transaction in each block.

This attempt is beginning in, and features a new database file LiteDb, and a new driver/event loop spvnode.py: https://github.com/amiller/pynode/tree/spv

amiller avatar Dec 09 '13 21:12 amiller

Agreed. I'm happy to merge changes like this into upstream pynode.

jgarzik avatar Dec 11 '13 14:12 jgarzik