From: Animazing <ani...@gm...> - 2012-08-07 08:06:38
|
Hey Slush, I'm currently on holiday so I will make this quick. I spoke with Genjix last week about the long term goals for Electrum. One of the most important things was making everything simpler. If this patch helps achieve that I'm all for it. I will run it on my own servers as soon as I get back to test it out. If it all works as expected I will merge it into master. Just FYI: I will also be moving the electrum server repo to Github like I did with the client code. Regards, Animazing On Sun, Aug 5, 2012 at 12:11 PM, slush <sl...@ce...> wrote: > I just created formal merge request for this stuff: > > https://gitorious.org/electrum/server/merge_requests/5 > > slush > > On Sat, Aug 4, 2012 at 5:24 PM, slush <sl...@ce...> wrote: > > Hi all, > > > > one of the most ugly thing in server installation process is that > > patch of bitcoind for sending transactions to bitcoin network. > > Although it's quite easy for us, experienced bitcoin hackers to patch > > bitcoind and recompile it, I feel it might be a problem for many > > people wanted to run their own Electrum server. > > > > I have working pure-python code for broadcasting transactions directly > > to some bitcoin node, using P2P connection on port 8333, instead of > > current "importtransaction" RPC call. I prepared it for my Stratum > > server implementation and it works great, however it depends on > > Twisted framework. I know Thomas was against Twisted in the Electrum > > server implementation, but I have working solution and I don't have a > > time to rewrite it to non-Twisted version. > > > > For this reason I'm offering my version "as is" and it's up to core > > developers (currently I don't know who it is) if you'll use my > > proposal or you stick with current solution using bitcoind patch. > > > > "Fixing" send_tx is really easy now, because I released that library > > as PYPI module "sendtx". Eveyrthing you need to change in Electrum > > server to get it working is: > > > > a) Add "easy_install sendtx" to server installation guide > > b) Add "self.bitcoind_host = config.get('bitcoind','host')" to > > backends/Abe/__init__.py:AbeStore.__init__() > > c) Replace send_tx() method with following code: > > def send_tx(self,tx): > > import sendtx > > return sendtx.process(self.bitcoind_host, tx) > > > > My Electrum node at california.stratum.bitcoin.cz is already using > > this patch, so you can try that it is really working :-). > > > > Best, > > slush > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Electrum-discuss mailing list > Ele...@li... > https://lists.sourceforge.net/lists/listinfo/electrum-discuss > |