Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id B9C968FE for ; Sun, 15 Nov 2015 01:45:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id F312AF5 for ; Sun, 15 Nov 2015 01:45:12 +0000 (UTC) Received: from [192.168.50.29] ([69.50.179.106]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lb5nF-1ahXJb0Hgv-00kce5; Sun, 15 Nov 2015 02:45:06 +0100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) From: Peter R In-Reply-To: Date: Sat, 14 Nov 2015 17:45:03 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <6DAD1D38-A156-4507-B506-BF66F26E6594@gmx.com> References: <5631C363.5060705@neomailbox.net> <201510290803.52734.luke@dashjr.org> <5632DE33.7030600@bitcartel.com> <3CB90C47-293E-4C18-A381-E5203483D68F@gmx.com> <571D9B7F-077D-4B80-B577-1C18FF2ECF31@gmx.com> To: Gregory Maxwell X-Mailer: Apple Mail (2.2104) Sender: Peter_R@gmx.com X-Provags-ID: V03:K0:OK7BbcnKkct5SXvG7/nvqFVg/+Ix4JdECyfYebh2NQH3phohCHR mvLgDbw+YiiPwLZKhTgbuC7+mX+F87fa5LKtWKj1kkiIi0EeZNQ4ezMNinxygWhSt1HZBba hlhBXDBfsguUpibNyIPompHf3yOmFqOWO7XJ9CTUjPdLG9dIn4Lil4MUmU8bUikLGaNgu4v tZdAbG5DfB3DMUsy6Ml6w== X-UI-Out-Filterresults: notjunk:1;V01:K0:eqsFxPntEZI=:5PQbrCPjPGcYg1pFSIfA+2 xLI7U33lgLU2ZeZIdy6lCfwk0pdEA6BhLgYTBne+Z/N+U8Ohv8DMY6PeAUSaRYjis8IXcnSEb 1kR4kZR4gEa0rDgsSr2AtF5kLD6cjYNQRUejPfdIZjpFlrwg6CJiDySvbbTrFY5TiliIvZ9ub TiXZOulLd7xB4xX4l4TySQur7JtoKYxAoFn5Dsgh4uA+SHM2jYyBkJFHdPQBkJd7XEhG1QmvJ HPepZiIPffFEurCL9eUA6mUwNRZj7Y4dwLQhNZD3T1kckjt1MDjl99LfGmanZD97HG9aej95Q 7X8PjJum3gTGuzIy6KpzDK9z2LIU5GuHeKsAVQZaRwuWLTAbGP23dlqRWjManBVkipB16wU3v rCnSCP0CGbqOC72d0voE4Emep7TRtsTA8FVQm93e2CekosAq5cGXF12g/9EojRMzCsEh2kf3b Rbf/AjaNrbO8hDimTjAUTv5xLLfYKpCdFouN4mTgbUY9jxs1wJa2kMo1kzo5h9gWhw7osHHyf LoX7slhpvccPaL24/WC+wSs4l9mQBP1UvUmDHKtc74aaJ6i4c0Ji+UvvOmy/u3kP/06IMw4J6 K9uJLAksRWuhLNyzmO5LEj7RR/UUhtfLGG2Otyr4mjbVDSt8HJ0Gx/bGN/UPMvlxOUriK1Tz7 SZMsnnqkNnPLhCPyOWgCZyH1a/Pp1VRlYigP2QHf6tfMNgvdgVaguQiQm3hhJ4sQ6itmcxglW c0lY1ck3QvyK0Gls/tpXmwMRK4NT7/gK3k5pduJuptpMmNkBQB/uUxN/UjHOKD7XG3+PIQdcs HNanwOc X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Bitcoin Dev , telemaco Subject: Re: [bitcoin-dev] [patch] Switching Bitcoin Core to sqlite db X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2015 01:45:14 -0000 > On Nov 14, 2015, at 5:08 PM, Gregory Maxwell = wrote: >=20 > On Sun, Nov 15, 2015 at 1:02 AM, Peter R wrote: >> Hi Greg, >>=20 >> Like you said, the issue with using more than one database technology = is not that one node would prove that Block X is valid while the another = node proves that Block X is NOT valid. Instead, the problem is that one = node might say =E2=80=9Cvalid=E2=80=9D while the other node says =E2=80=9C= I don=E2=80=99t know.=E2=80=9D >=20 > Sometimes errors are such that you can catch them (if you're super > vigilant and know an error is even possible in that case)-- and > indeed, in that case you can get a "I don't know, something is > wrong.", other times errors are undetectable. Agreed. There are two cases to consider: Type 1. One implementation says =E2=80=9Cyes=E2=80=9D or =E2=80=9Cno,=E2=80= =9D while the other says =E2=80=9CI don=E2=80=99t know=E2=80=9D, and Type 2. One implementation says =E2=80=9Cyes=E2=80=9D and the other = says =E2=80=9Cno,=E2=80=9D because of a bug. =20 My previous email described how Type 1 consensus failures can be safely = dealt with. These include many kinds of database exceptions (e.g., the = LevelDB fork at block #225,430), or consensus mismatches regarding the = max size of a block. =20 Type 2 consensus failures are more severe but also less likely (I=E2=80=99= m not aware of a Type 2 consensus failure besides the 92 million bitcoin = bug from August 2010). If Core was to accept a rogue TX that created = another 92 million bitcoins, I think it would be a good thing if the = other implementations forked away from it (we don=E2=80=99t want = bug-for-bug compatibility here). =20 This once again reveals the benefits of multiple competing = implementations. =20 Sincerely, Peter=20