Bitcoin Forum
May 09, 2024, 11:57:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [ANN] pynode: Simple bitcoin P2P node  (Read 7436 times)
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
September 23, 2012, 04:28:25 PM
 #21

Very nice tool. Am I correct that this could be the basis of a tool to monitor large numbers of addresses for activity?

Sure.  It could monitor whatever metrics you need, on the bitcoin network.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
marcus_of_augustus
Legendary
*
Offline Offline

Activity: 3920
Merit: 2348


Eadem mutata resurgo


View Profile
September 24, 2012, 12:01:10 AM
 #22

Wondering if an Electrum client might be able to modified to talk to a pynode ... or vice versa?

What does Electrum use to talk to bitcoind?   pynode provides a JSON-RPC HTTP server interface, just like bitcoind...



It uses the Stratum protocol ... but I don't have detailed knowledge of that, yet.

wabber
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
September 24, 2012, 09:45:35 PM
 #23

Wondering if an Electrum client might be able to modified to talk to a pynode ... or vice versa?

What does Electrum use to talk to bitcoind?   pynode provides a JSON-RPC HTTP server interface, just like bitcoind...



It uses the Stratum protocol ... but I don't have detailed knowledge of that, yet.

there are 2 electrum applications: the electrum client and the electrum server. The electrum server talks to bitcoind using the JSON-RPC interface but stores it's own blockchain. The electrum client talks to the electrum server using the stratum protocol.
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
October 01, 2012, 06:19:06 AM
 #24

Thanks (again) to socrates1024, pynode has switched to using the leveldb database, plus a flat file format for raw blockchain data.

This database upgrade is wholly incompatible with the previous GDBM-based database.

When signature checking is disabled, the entire blockchain may be downloaded in 34 minutes.

When signature checking is enabled, the blockchain download process takes many hours (6-12), due to slowness of python.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
October 06, 2012, 02:48:06 AM
 #25


The on-disk block file format was just updated to match the network's "block" message format.

This is an incompatible change.  You will need to delete, and re-download, your block databases.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 07, 2013, 09:37:26 PM
 #26

pynode is very much alive and well.  It is becoming popular enough that we can branch off the internal "bitcoin" sub-directory into a proper python library, python-bitcoinlib.

Stay tuned for details.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 08, 2013, 03:04:42 AM
 #27

Library forked, and moved to a new home and forum thread:

     https://github.com/jgarzik/python-bitcoinlib

Pull requests and donations welcome, as always.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
tehace
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
March 21, 2013, 06:51:55 PM
 #28

Hello I am a bit new to programming but I would love to experiment around with pynode and python-bitcoinlib are there any guides or source code examples available or would I need to figure that stuff out myself? (I promise not to store anyone's life savings using it until I know the node and libs inside and out inside and out)

DOGE: DChHzYffNDrMsM9L1GtG14cmp1NUXrEe9Z
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
March 21, 2013, 06:56:15 PM
 #29

Hello I am a bit new to programming but I would love to experiment around with pynode and python-bitcoinlib are there any guides or source code examples available or would I need to figure that stuff out myself? (I promise not to store anyone's life savings using it until I know the node and libs inside and out inside and out)

pynode and assorted utilities dbck.py and mkbootstrap.py are essentially source code examples for python-bitcoinlib.  Unfortunately that's it.

Contributed examples are welcome in both projects, however.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
tehace
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
March 21, 2013, 06:59:30 PM
 #30

Thanks for the quick reply. As soon as I figure stuff out I shall contribute anything useful I do back.

DOGE: DChHzYffNDrMsM9L1GtG14cmp1NUXrEe9Z
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
August 21, 2013, 12:52:50 PM
 #31

This received several bug fixes, by way of its use of python-bitcoinlib.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
September 03, 2013, 05:29:23 PM
 #32

Merged "addnodes" support, so that additional nodes may be added via configuration file.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
weex
Legendary
*
Offline Offline

Activity: 1102
Merit: 1014



View Profile
September 03, 2013, 10:39:21 PM
Last edit: September 11, 2013, 10:09:24 PM by weex
 #33

Nice. This is a fun project to play around with.
phelix
Legendary
*
Offline Offline

Activity: 1708
Merit: 1020



View Profile
April 22, 2015, 12:27:14 PM
 #34

Is pynode still being updated? Or is there a follow up?
Pages: « 1 [2]  All
  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!