summaryrefslogtreecommitdiff
path: root/d8/d52744ae570a0939cab363a6a191df8004548e
blob: 6ef1b02694d6b7783139765f3de24834b0799253 (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
Return-Path: <karljohan-alm@garage.co.jp>
Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
	[172.17.192.35])
	by mail.linuxfoundation.org (Postfix) with ESMTPS id 14B47D61
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 11 Apr 2018 05:21:35 +0000 (UTC)
X-Greylist: from auto-whitelisted by SQLgrey-1.7.6
Received: from mo.garage.hdemail.jp (mo.garage.hdemail.jp [46.51.242.127])
	by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 7DE0417E
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 11 Apr 2018 05:21:34 +0000 (UTC)
Received: from ip-10-217-1-36.ap-northeast-1.compute.internal
	(localhost.localdomain [127.0.0.1])
	by mo.garage.hdemail.jp (hde-mf-postfix) with SMTP id 1C5B014C0B9
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 11 Apr 2018 14:21:33 +0900 (JST)
	(envelope-from karljohan-alm@garage.co.jp)
X-Received: from unknown (HELO mo.garage.hdemail.jp) (127.0.0.1)
	by 0 with SMTP; 11 Apr 2018 14:21:33 +0900
X-Received: from mo.garage.hdemail.jp (localhost.localdomain [127.0.0.1])
	by mo.garage.hdemail.jp (hde-ma-postfix) with ESMTP id 13DA04C079
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 11 Apr 2018 14:21:33 +0900 (JST)
	(envelope-from karljohan-alm@garage.co.jp)
Received: from gw21.oz.hdemail.jp
	(ip-10-172-131-196.ap-northeast-1.compute.internal [10.172.131.196])
	by mo.garage.hdemail.jp (hde-mf-postfix) with ESMTP id 1239B14C0B9
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 11 Apr 2018 14:21:33 +0900 (JST)
	(envelope-from karljohan-alm@garage.co.jp)
X-Received: from mail-qt0-f199.google.com (lb07.oz.hdemail.jp [54.238.57.67])
	(using TLSv1 with cipher AES128-SHA (128/128 bits))
	(No client certificate requested)
	by gw21.oz.hdemail.jp (Postfix) with ESMTP id AC48B148C111
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Wed, 11 Apr 2018 14:21:32 +0900 (JST)
X-Received: by mail-qt0-f199.google.com with SMTP id f13so502157qtg.15
	for <bitcoin-dev@lists.linuxfoundation.org>;
	Tue, 10 Apr 2018 22:21:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to;
	bh=7dS6fxAVxf8ErsgoceWYIStpNZmVzO2/qp8VHZ0fY+4=;
	b=myKgVNT2nQtiQSn9OT4FXSmoKjQyRWFlFaibiFMHn+eReZQO4nyMphQGL89U7nAzp/
	ogS/2SnxpfOHT9imEclctW7x6eZvGxYGUhQ7eIEVU8it9DFt6qFSmW96AZkb61ZGypXq
	b1k6hWL4ySeg2aTP5kxR0ac+ydrgYkfBRsB1SnlC+rKDTzpuRhjsb7JacVUH63tSsKOl
	Fs1HxC/EKOxrgTV8xKzl5FOeiCUOcEGv7cZP5HooCFWGiIe7a8BJAbnnXq0s2TPjxHPQ
	2mTmwYMN8iPXmlddXD4cxbWv+JyyDKrZmuAgaVNqq4EaEqSdJSdtm9O+b7ezFfzMXDWB
	b9Kw==
X-Gm-Message-State: ALQs6tAHKWnR8FMHhYPsygkO0dTjDjU5C0mMUW1uqwnBqO58Ec6cY6tw
	tkxRSYws/4KNqJ2zGAyys5vO1U/FiS2x5FXjtWgs7vjnp4DoNlPGsg6RsYdL452DLVkU897T6l/
	YbllWtBzcaFntE8zcHvQJw9IVgU0raYqK0TCUxqfzsT7DSc46WBuHCOOiHgeltGIOTf4/Polnp5
	ZXjhhRhLYHeKNlDd+SooA5xLjAtQv1x2EEyKTR2U2hknRA6GLtDbsITdu2qHe7j4OBi1RaShP/l
	zX5S9bUOXMfKYrBN2c9xAM19Q5cIcqY8t9ZO+x1Mo6pRt/jSk2yMembLqbhB+yJv86S2torItnN
	fftIzXzfrTbJ9ZZ8aqhyoRRySKA=
X-Received: by 10.200.66.80 with SMTP id r16mr5175969qtm.289.1523424091307;
	Tue, 10 Apr 2018 22:21:31 -0700 (PDT)
X-Google-Smtp-Source: AIpwx49VKiPH9aANhyLkAxAiK5Y03TAoOxfkgkh0lskw6Q3uVXw1x9qxBv/zhUQmvmtXSssRMka5AHowME2UXLMFeco=
X-Received: by 10.200.66.80 with SMTP id r16mr5175950qtm.289.1523424091037;
	Tue, 10 Apr 2018 22:21:31 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.12.208.26 with HTTP; Tue, 10 Apr 2018 22:21:10 -0700 (PDT)
In-Reply-To: <CAO11aqjomkZcr8yeKtT5M8VUROGwz56w11UzR0pDBu333=BEPg@mail.gmail.com>
References: <CAO11aqjomkZcr8yeKtT5M8VUROGwz56w11UzR0pDBu333=BEPg@mail.gmail.com>
From: Karl-Johan Alm <karljohan-alm@garage.co.jp>
Date: Wed, 11 Apr 2018 14:21:10 +0900
Message-ID: <CALJw2w6Guc6rX7A_8Nqob+w1=NKi2DfH9aj2-sg2EfgRFjDw0g@mail.gmail.com>
To: Maksim Solovjov <maxim.solovjov@gmail.com>, 
	Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	smtp1.linux-foundation.org
Subject: Re: [bitcoin-dev] Few questions regarding ListTransaction
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
	<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Apr 2018 05:21:35 -0000

On Wed, Apr 11, 2018 at 5:29 AM, Maksim Solovjov via bitcoin-dev
<bitcoin-dev@lists.linuxfoundation.org> wrote:
> 1. What does it mean for a transaction ( with 0 confirmations ) to be
> trusted or not?

It is trusted if (1) it is final (i.e. it can't be replaced), (2) it
is not in a block that was reorged out (negative confirmation count),
(3) the 'spend zero conf change' option is set, (4) it is in the
mempool, and (5) all inputs are from us.

> 2. When does confirmations can be -1 ( conflicted )?
> What does it mean to have conflicted transaction?
> Is it about Transaction Malleability? Double Spend? or both?

A transaction is conflicted if a different transaction exists that
spends the same inputs. A transaction gets -N confirmations if it is
mined in a block, and that block is orphaned away, and a different
transaction is mined in the new block so that the transaction becomes
a double spend.