summaryrefslogtreecommitdiff
path: root/95/6da0591d30727ec672cb0df212c3dd2ea40262
blob: 3673c05edef928056e30b47df8797dab5bc554ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191]
	helo=mx.sourceforge.net)
	by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <michael@ndrix.org>) id 1UiOSV-0001XF-SV
	for bitcoin-development@lists.sourceforge.net;
	Fri, 31 May 2013 12:29:27 +0000
X-ACL-Warn: 
Received: from out1-smtp.messagingengine.com ([66.111.4.25])
	by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.76) id 1UiOSU-00006R-Sw
	for bitcoin-development@lists.sourceforge.net;
	Fri, 31 May 2013 12:29:27 +0000
Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42])
	by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id DE4C2209B3
	for <bitcoin-development@lists.sourceforge.net>;
	Fri, 31 May 2013 08:10:50 -0400 (EDT)
Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160])
	by compute2.internal (MEProxy); Fri, 31 May 2013 08:10:50 -0400
X-Sasl-enc: Veojjz91FMMKTmSm1oR1AWvkZ5wB6Ar9uSKu6h7+bkIY 1370002250
Received: from mail-vc0-f180.google.com (unknown [209.85.220.180])
	by mail.messagingengine.com (Postfix) with ESMTPA id A8366C8014A
	for <bitcoin-development@lists.sourceforge.net>;
	Fri, 31 May 2013 08:10:50 -0400 (EDT)
Received: by mail-vc0-f180.google.com with SMTP id gd11so973066vcb.39
	for <bitcoin-development@lists.sourceforge.net>;
	Fri, 31 May 2013 05:10:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=hS+H3zNb/gndH8QKykX8ArPqfw/C/ZDnGLGGopXfL90=;
	b=pRdInzJmXYEqHqjrb2+yDXqlrS4owcMAk/+p3hVVH9k81r20b1GHP8SCCVgPXo9K5+
	npaI4TzdJRYEX6t86cP1CJKYX00T9gxtlfas1g1PKGMMkyviRsAXMgWUNlZ1fwS5vQ49
	TPr/KmPBxZXUYVUEkymYIFoX34T8cqGwkBMOrGE2hjxOuZ6E+0xQcYrRy1IKiOHWytdp
	jV+wcFQzLhX8XAOIX60+qeBHmiRS3pH9LdPV9qrVYqkJ1ipbJ6YKs8iGaqcec2QAyd1R
	3zzynBNy5hCp/t6ByQT1N1QMF6y3VWiADjvY+3eOyDETksQYBuip0rzh1k9Hmpb755Go
	yLew==
MIME-Version: 1.0
X-Received: by 10.58.200.131 with SMTP id js3mr9939715vec.33.1370002250447;
	Fri, 31 May 2013 05:10:50 -0700 (PDT)
Received: by 10.58.254.4 with HTTP; Fri, 31 May 2013 05:10:50 -0700 (PDT)
In-Reply-To: <CAH2=CKzW41TYbX6c1F8oknA_LttOaA8vmDPmojuowXgEADY61g@mail.gmail.com>
References: <CAH2=CKzW41TYbX6c1F8oknA_LttOaA8vmDPmojuowXgEADY61g@mail.gmail.com>
Date: Fri, 31 May 2013 06:10:50 -0600
Message-ID: <CAFHuXuZaSNkUUX8o_k=wSf5MeQ3tAj6yD8DJuLwbyA0C3xRQuQ@mail.gmail.com>
From: Michael Hendricks <michael@ndrix.org>
To: =?UTF-8?Q?Rune_Kj=C3=A6r_Svendsen?= <runesvend@gmail.com>
Content-Type: multipart/alternative; boundary=047d7bd6b2da7ac6f304de028123
X-Spam-Score: 1.0 (+)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	1.0 HTML_MESSAGE           BODY: HTML included in message
	0.1 DKIM_SIGNED            Message has a DKIM or DK signature,
	not necessarily valid
	-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Headers-End: 1UiOSU-00006R-Sw
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] Implementing batch processing for
	-blocknotify
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Fri, 31 May 2013 12:29:28 -0000

--047d7bd6b2da7ac6f304de028123
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Fri, May 31, 2013 at 5:56 AM, Rune Kj=C3=A6r Svendsen <runesvend@gmail.c=
om>wrote:

> I have an application that wants to keep up with new blocks as they come
> in. For that I can use the -blocknotify option with bitcoind, which will
> execute my application for each new block.
>
> The problem is that my app isn't necessarily quick enough to finish its
> work before a new block comes in and the app is executed again.
>

In a similar circumstance, I changed my -blocknotify script to quickly
append necessary information to a queue and immediately exit.  A separate
script runs at all times monitoring this queue for work and performs the
labor intensive calculations.

I hope that helps.

--=20
Michael

--047d7bd6b2da7ac6f304de028123
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Fri, May 31, 2013 at 5:56 AM, Rune Kj=C3=A6r Svendsen <=
span dir=3D"ltr">&lt;<a href=3D"mailto:runesvend@gmail.com" target=3D"_blan=
k">runesvend@gmail.com</a>&gt;</span> wrote:<br><div class=3D"gmail_extra">=
<div class=3D"gmail_quote">
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>I have an application =
that wants to keep up with new blocks as they come in. For that I can use t=
he -blocknotify option with bitcoind, which will execute my application for=
 each new block.</div>
<div><br>

</div><div>The problem is that my app isn&#39;t necessarily quick enough to=
 finish its work before a new block comes in and the app is executed again.=
</div></div></blockquote><div><br></div><div>In a similar circumstance, I c=
hanged my -blocknotify script to quickly append necessary information to a =
queue and immediately exit. =C2=A0A separate script runs at all times monit=
oring this queue for work and performs the labor intensive calculations.</d=
iv>
<div><br></div><div>I hope that helps.</div><div><br></div><div>--=C2=A0</d=
iv><div>Michael</div></div></div></div>

--047d7bd6b2da7ac6f304de028123--