10
5
I recently became aware that python-bitcoinlib is not a full bitcoin node implementation, but rather a set of tools to work with bitcoin-core cpp. I would like to know whether there are some fundamental issues with implementing a complete bitcoin node using python? Also if it were to be tried as a code-golf exercise (the shortest code to get the full node running) how many lines of code will it amount to in python ??
Performance-wise this would be bad idea, as Python dynamic programming language tend to use more RAM on data structures. It could be however interesting exercise. – Mikko Ohtamaa – 2015-12-07T18:48:10.020
1@MikkoOhtamaa: Python is perfectly capable of handling the performance requirements of a Bitcoin node. The answers so far point to several projects that do this. – Greg Hewgill – 2015-12-07T19:15:32.343
@GregHewgill: But none of those can serve as a complete replacement for bitcoin-core, right? – user2277550 – 2015-12-07T19:17:17.423
1@user2277550: I don't see why not. There's no underlying reason why Python would be unsuitable for this purpose. It's certainly more than capable enough. It sounds like you're asking whether somebody else has already written in Python exactly what you have in mind. Maybe, maybe not. But it's possible to do so. – Greg Hewgill – 2015-12-07T19:19:42.833
@GregHewgill: Links or didn't happen :) – Mikko Ohtamaa – 2015-12-07T19:20:23.983
1@MikkoOhtamaa: The existing answers already have several links. I'm not sure what more you're asking for. – Greg Hewgill – 2015-12-07T19:21:08.833
@GregHewgill: Ok thanks - seeing the answer now. – Mikko Ohtamaa – 2015-12-07T19:25:13.917