Sergio Lerner [ARCHIVE] on Nostr: 📅 Original date posted:2014-07-21 📝 Original message:I'm working on a BIP which ...
📅 Original date posted:2014-07-21
📝 Original message: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,
Published at
2023-06-07 15:24:20Event JSON
{
"id": "9d30d1443efd2d8bf2d079ecaa1594c5b24c7aebcc665cefbf8171d18b14c2df",
"pubkey": "60f7a1f85420f38fa26db24af48330bd1800ed3bef3168454263dcfcef62a8ce",
"created_at": 1686151460,
"kind": 1,
"tags": [
[
"e",
"39d1575ccb9e669c2e26e64001819b483b4144fcb98350bc7f44d47772e97a9b",
"",
"reply"
],
[
"p",
"a23dbf6c6cc83e14cc3df4e56cc71845f611908084cfe620e83e40c06ccdd3d0"
]
],
"content": "📅 Original date posted:2014-07-21\n📝 Original message:I'm working on a BIP which needs to modify the block acceptance rules. I\nhave two ways of testing:\n\n- Mining blocks on the testnet\n- Creating test cases for Bitcoin Core.\n\nI want to create those test cases for block.CheckBlock(), which involves\nverifying 100 dynamically generated blocks.\nWhat is the state of the blockchain when a test case is executed ? Is is\nconfigured for the regtest, testnet3 or mainnet? What blocks are in the\nblockchain? Only the genesis block?\n\ncheckblock_tests.cpp seems to be the only test case for CheckBlock() and\nit assumes the mainnet is configured.\nI need to use the regtest so I can create blocks of difficulty 1.\n\nBest regards and thank you in advance,",
"sig": "089165f3b28e25f892430d1bc24d10e37074f9c4e0678500c0741173c25232c00005021a1aec73d7370440c3a2494b67ed901cffbd846513cb4cd41e24ca8db9"
}