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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194]
helo=mx.sourceforge.net)
by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
(envelope-from <jgarzik@bitpay.com>) id 1Z6iVv-00033m-80
for bitcoin-development@lists.sourceforge.net;
Sun, 21 Jun 2015 16:54:35 +0000
Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of bitpay.com
designates 209.85.214.176 as permitted sender)
client-ip=209.85.214.176; envelope-from=jgarzik@bitpay.com;
helo=mail-ob0-f176.google.com;
Received: from mail-ob0-f176.google.com ([209.85.214.176])
by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
(Exim 4.76) id 1Z6iVt-0000RJ-Vg
for bitcoin-development@lists.sourceforge.net;
Sun, 21 Jun 2015 16:54:35 +0000
Received: by obbkm3 with SMTP id km3so7666726obb.1
for <bitcoin-development@lists.sourceforge.net>;
Sun, 21 Jun 2015 09:54:28 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc:content-type;
bh=83A8cpFG7Xxz4IEsFlcz+70FjOwGLm5Wg462o/PoqBo=;
b=dNKFRGj4/sIWPbLLRxtt+VdtwFKx9UM+7/txiaUZzXh2RuTef0K8hmVJyLnk8DAluT
YNKh+f0w5Lt1FuumE81dbQq6VVObYZ2FXeTvkIk/dYTJyjZNasa8e9KvXxJjgYYbQ2om
VlkZK1ko2Hwyx4XHltrbVl7BYIoYr0PWilt8nblT+qpnNmeLlvwsu73obOeaUVFNR9vW
8f7i0mDOULT/XdML3+GzesrkZ7mY3wAUwCh9qlgfCteHlL2txz1AivGjnAenc9lopN9o
Y9ZHherwL8Sv0VcvKl1LhbOOgrK9SqB4WSQQ1RRieFn3YmsQhwNOTVfOoYrUEZ2zW4bt
GwUA==
X-Gm-Message-State: ALoCoQk5pPcYQWeMpROgjnI8UbJMUTNOwt13LYmPZsQufhK5or9NdHUnKr7jLU39Acgvrze1KtpJ
X-Received: by 10.60.156.130 with SMTP id we2mr21925809oeb.24.1434905668527;
Sun, 21 Jun 2015 09:54:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.108.149 with HTTP; Sun, 21 Jun 2015 09:54:08 -0700 (PDT)
In-Reply-To: <CAJ2Ovph8ijL8v0r-gK4NNt7zA7G-1eTTsk7ZWqbw3HqD8jbF7A@mail.gmail.com>
References: <CAJ2Ovpi_qYFqXZ9hWdobVj1Km04soXVm7GwN+M3Ay8yhZCHhGg@mail.gmail.com>
<558679AA.9010308@sky-ip.org>
<CAJ2Ovph8ijL8v0r-gK4NNt7zA7G-1eTTsk7ZWqbw3HqD8jbF7A@mail.gmail.com>
From: Jeff Garzik <jgarzik@bitpay.com>
Date: Sun, 21 Jun 2015 09:54:08 -0700
Message-ID: <CAJHLa0PM8yOw3XxPtRGQaGosurcKi8rOn5Jeh4mm9-Wu+N6MJg@mail.gmail.com>
To: Braun Brelin <bbrelin@gmail.com>
Content-Type: multipart/alternative; boundary=089e01182852a8c4fd05190a0280
X-Spam-Score: -0.5 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
See http://spamassassin.org/tag/ for more details.
-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
sender-domain
-0.0 SPF_PASS SPF: sender matches SPF record
1.0 HTML_MESSAGE BODY: HTML included in message
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
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
0.1 AWL AWL: Adjusted score from AWL reputation of From: address
X-Headers-End: 1Z6iVt-0000RJ-Vg
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] Question regarding transactions with
NLOCKTIME > 0
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: Sun, 21 Jun 2015 16:54:35 -0000
--089e01182852a8c4fd05190a0280
Content-Type: text/plain; charset=UTF-8
Yes, that is correct. The network will not relay until locktime reaches
"maturity", i.e. it can be confirmed into a block.
The wallet holds onto the transaction -- or simply does not generate --
until it can be confirmed.
On Sun, Jun 21, 2015 at 5:11 AM, Braun Brelin <bbrelin@gmail.com> wrote:
> So, basically it sounds as though the wallet generating the transaction is
> what is responsible for holding on to the transaction and then
> only releasing it to the network when the NLOCKTIME value is less than or
> equal to the current time. Does that sound right?
>
> Braun
>
>
> On Sun, Jun 21, 2015 at 10:45 AM, s7r <s7r@sky-ip.org> wrote:
>
>> Hi
>>
>> I don't think that a transaction with nLockTime>0 will be accepted by
>> nodes / relayed in the Bitcoin network, until its time expires (e.g.
>> nLockTime==now). This means it obviously cannot be stored in a block,
>> before its locktime expires. nLockTime is designed in a way that you,
>> need to keep it offline (not broadcast it to the network because it
>> won't be accepted or relayed by nodes) until the locktime expires, then
>> you can broadcast it and it will be mined and included in a block, like
>> a normal tx.
>>
>> This is exactly why Peter Todd and others are working on
>> CHECKLOCKTIMEVERIFY and RELATIVE CHECKLOCKTIMEVERIFY - this is an
>> enhancement to basic nLockTime which tends to offer to users the
>> guarantee that if you have a transaction with nLockTime, the signer
>> holding the private keys used to sign it cannot sign another one, with
>> nLockTime 0 and broadcast it before the locktime for your tx expires.
>>
>> Cheers!
>>
>> On 6/21/2015 10:10 AM, Braun Brelin wrote:
>> > Hi all,
>> >
>> > When a transaction with N_LOCKTIME>0 is created, does that transaction
>> > get stored in a block on the blockchain or is it stored in the mempool
>> > until the actual time (or block number) exceeds the current value? If
>> > it is stored on the blockchain, how does that affect the concept of
>> > pruning that is supposed to be going in to version 0.11? I.e. if I
>> > create a transaction that doesn't take effect for 10 years, and that
>> > transaction is stored in a block, does that block stay on the active
>> > list for that period of time?
>> >
>> > Thanks,
>> >
>> > Braun Brelin
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> >
>> >
>> >
>> > _______________________________________________
>> > Bitcoin-development mailing list
>> > Bitcoin-development@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>> >
>>
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>
>
--
Jeff Garzik
Bitcoin core developer and open source evangelist
BitPay, Inc. https://bitpay.com/
--089e01182852a8c4fd05190a0280
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Yes, that is correct.=C2=A0 The network will not relay unt=
il locktime reaches "maturity", i.e. it can be confirmed into a b=
lock.<div><br></div><div>The wallet holds onto the transaction -- or simply=
does not generate -- until it can be confirmed.</div></div><div class=3D"g=
mail_extra"><br><div class=3D"gmail_quote">On Sun, Jun 21, 2015 at 5:11 AM,=
Braun Brelin <span dir=3D"ltr"><<a href=3D"mailto:bbrelin@gmail.com" ta=
rget=3D"_blank">bbrelin@gmail.com</a>></span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex"><div dir=3D"ltr">So, basically it sounds as though the walle=
t generating the transaction is what is responsible for holding on to the t=
ransaction and then<div>only releasing it to the network when the NLOCKTIME=
value is less than or equal to the current time.=C2=A0 Does that sound rig=
ht? =C2=A0</div><span class=3D"HOEnZb"><font color=3D"#888888"><div><br></d=
iv><div>Braun</div><div><br></div></font></span></div><div class=3D"HOEnZb"=
><div class=3D"h5"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote=
">On Sun, Jun 21, 2015 at 10:45 AM, s7r <span dir=3D"ltr"><<a href=3D"ma=
ilto:s7r@sky-ip.org" target=3D"_blank">s7r@sky-ip.org</a>></span> wrote:=
<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I don't think that a transaction with nLockTime>0 will be accepted b=
y<br>
nodes / relayed in the Bitcoin network, until its time expires (e.g.<br>
nLockTime=3D=3Dnow). This means it obviously cannot be stored in a block,<b=
r>
before its locktime expires. nLockTime is designed in a way that you,<br>
need to keep it offline (not broadcast it to the network because it<br>
won't be accepted or relayed by nodes) until the locktime expires, then=
<br>
you can broadcast it and it will be mined and included in a block, like<br>
a normal tx.<br>
<br>
This is exactly why Peter Todd and others are working on<br>
CHECKLOCKTIMEVERIFY and RELATIVE CHECKLOCKTIMEVERIFY - this is an<br>
enhancement to basic nLockTime which tends to offer to users the<br>
guarantee that if you have a transaction with nLockTime, the signer<br>
holding the private keys used to sign it cannot sign another one, with<br>
nLockTime 0 and broadcast it before the locktime for your tx expires.<br>
<br>
Cheers!<br>
<div><div><br>
On 6/21/2015 10:10 AM, Braun Brelin wrote:<br>
> Hi all,<br>
><br>
> When a transaction with N_LOCKTIME>0 is created, does that transact=
ion<br>
> get stored in a block on the blockchain or is it stored in the mempool=
<br>
> until the actual time (or block number) exceeds the current value?=C2=
=A0 If<br>
> it is stored on the blockchain, how does that affect the concept of<br=
>
> pruning that is supposed to be going in to version 0.11?=C2=A0 I.e. if=
I<br>
> create a transaction that doesn't take effect for 10 years, and th=
at<br>
> transaction is stored in a block, does that block stay on the active<b=
r>
> list for that period of time?<br>
><br>
> Thanks,<br>
><br>
> Braun Brelin<br>
><br>
><br>
><br>
</div></div>> ----------------------------------------------------------=
--------------------<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Bitcoin-development mailing list<br>
> <a href=3D"mailto:Bitcoin-development@lists.sourceforge.net" target=3D=
"_blank">Bitcoin-development@lists.sourceforge.net</a><br>
> <a href=3D"https://lists.sourceforge.net/lists/listinfo/bitcoin-develo=
pment" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/l=
ists/listinfo/bitcoin-development</a><br>
><br>
</blockquote></div><br></div>
</div></div><br>-----------------------------------------------------------=
-------------------<br>
<br>_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href=3D"mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-develo=
pment@lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/bitcoin-development=
" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/=
listinfo/bitcoin-development</a><br>
<br></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div cla=
ss=3D"gmail_signature">Jeff Garzik<br>Bitcoin core developer and open sourc=
e evangelist<br>BitPay, Inc. =C2=A0 =C2=A0 =C2=A0<a href=3D"https://bitpay.=
com/" target=3D"_blank">https://bitpay.com/</a></div>
</div>
--089e01182852a8c4fd05190a0280--
|