From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1X9HcM-0005Xe-C9 for bitcoin-development@lists.sourceforge.net; Mon, 21 Jul 2014 17:43:18 +0000 X-ACL-Warn: Received: from p3plsmtpa08-07.prod.phx3.secureserver.net ([173.201.193.108]) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1X9HcL-0007iJ-44 for bitcoin-development@lists.sourceforge.net; Mon, 21 Jul 2014 17:43:18 +0000 Received: from [192.168.0.23] ([201.231.95.129]) by p3plsmtpa08-07.prod.phx3.secureserver.net with id V5Wa1o00M2nUpUh015WbFV; Mon, 21 Jul 2014 10:30:36 -0700 Message-ID: <53CD4E3A.1000605@certimix.com> Date: Mon, 21 Jul 2014 14:30:34 -0300 From: Sergio Lerner User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: bitcoin-development X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [173.201.193.108 listed in list.dnswl.org] X-Headers-End: 1X9HcL-0007iJ-44 Subject: [Bitcoin-development] Question on creating test cases for block.CheckBlock() X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2014 17:43:18 -0000 I'm working on a BIP which needs to modify the block acceptance rules. I have two ways of testing: - Mining blocks on the testnet - Creating test cases for Bitcoin Core. I want to create those test cases for block.CheckBlock(), which involves verifying 100 dynamically generated blocks. What is the state of the blockchain when a test case is executed ? Is is configured for the regtest, testnet3 or mainnet? What blocks are in the blockchain? Only the genesis block? checkblock_tests.cpp seems to be the only test case for CheckBlock() and it assumes the mainnet is configured. I need to use the regtest so I can create blocks of difficulty 1. Best regards and thank you in advance,