| 431 | } |
| 432 | |
| 433 | void TestChain100Setup::mineBlocks(int num_blocks) |
| 434 | { |
| 435 | CScript scriptPubKey = CScript() << ToByteVector(coinbaseKey.GetPubKey()) << OP_CHECKSIG; |
| 436 | for (int i = 0; i < num_blocks; i++) { |
| 437 | std::vector<CMutableTransaction> noTxns; |
| 438 | CBlock b = CreateAndProcessBlock(noTxns, scriptPubKey); |
| 439 | m_clock += 1s; |
| 440 | m_coinbase_txns.push_back(b.vtx[0]); |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | CBlock TestChain100Setup::CreateBlock( |
| 445 | const std::vector<CMutableTransaction>& txns, |
no test coverage detected