[Bitcoin-development] getmemorypool

2012-06-11 Thread Pieter Wuille
Hello everyone, Luke's getmemorypool/BIP22 pull request has been open for a long time, and didn't receive too much discussion. I think that having a stable and flexible API for negotiating block generation is important to be standardized. The fact that it allows moving block generation to special

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-04 Thread Geir Harald Hansen
On 04.03.2012 02:04, Luke-Jr wrote: > On Saturday, March 03, 2012 6:51:34 PM Geir Harald Hansen wrote: >> Long polling as currently implemented in pools has a race condition. >> Does the miner reconnect first or does another block change happen >> first? "Double" block changes are common with merge

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Luke-Jr
On Saturday, March 03, 2012 6:51:34 PM Geir Harald Hansen wrote: > Long polling as currently implemented in pools has a race condition. > Does the miner reconnect first or does another block change happen > first? "Double" block changes are common with merged mining and I'm > doing all sorts of tri

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Geir Harald Hansen
On 28.02.2012 23:06, Luke-Jr wrote: > Please review and comment/critique: > https://en.bitcoin.it/wiki/BIP_DRAFT:_getmemorypool Looking forward to implementing this in my pool backend and miner. A few comments: "transactions add or remove transactions (both of the above; default if "transa

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Stefan Thomas
> I've updated the draft to include long polling, and remove some assumptions of > using HTTP for transport. Looks good to me. On 3/3/2012 4:44 PM, Luke-Jr wrote: > On Saturday, March 03, 2012 10:05:58 AM Gavin Andresen wrote: >>> HTTP and JSON-RPC are a client-server model; there is no way for t

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Stefan Thomas
Btw - question to Stefan as the JavaScript guru - what do you consider the standard/defacto-standard/right/best-practice way of doing S->C json-rpc, what (javascript) library do you use for this? As for an explicitly standard way, there is none. The JSON-RPC 1.0 spec

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Michael Grønager
> > HTTP and JSON-RPC are a client-server model; there is no way for the server > to > make calls to the client. It's not practical to expect clients to run their > own JSON-RPC server - many cannot listen on WAN ports at all. Well, I think what Stefan had in mind was http keep-alive combined

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Luke-Jr
On Saturday, March 03, 2012 10:05:58 AM Gavin Andresen wrote: > > HTTP and JSON-RPC are a client-server model; there is no way for the > > server to make calls to the client. It's not practical to expect clients > > to run their own JSON-RPC server - many cannot listen on WAN ports at > > all. > >

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Luke-Jr
On Saturday, March 03, 2012 9:23:08 AM Stefan Thomas wrote: > From what I understand the BIP uses a polling model, e.g. a miner would > use getmemorypool to request new work from a pool in intervals. Would it > make sense to specify a version of the API supporting long polling? You mean explicitl

Re: [Bitcoin-development] getmemorypool BIP process

2012-03-03 Thread Stefan Thomas
From what I understand the BIP uses a polling model, e.g. a miner would use getmemorypool to request new work from a pool in intervals. Would it make sense to specify a version of the API supporting long polling? For BitcoinJS specifically, since we also support JSON-RPC over TCP, I'd even be

[Bitcoin-development] getmemorypool BIP process

2012-02-28 Thread Luke-Jr
Please review and comment/critique: https://en.bitcoin.it/wiki/BIP_DRAFT:_getmemorypool -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is