| 282 | } |
| 283 | |
| 284 | void TestChain100Setup::mineBlocks(int num_blocks) |
| 285 | { |
| 286 | CScript scriptPubKey = CScript() << ToByteVector(coinbaseKey.GetPubKey()) << OP_CHECKSIG; |
| 287 | for (int i = 0; i < num_blocks; i++) { |
| 288 | std::vector<CMutableTransaction> noTxns; |
| 289 | CBlock b = CreateAndProcessBlock(noTxns, scriptPubKey); |
| 290 | SetMockTime(GetTime() + 1); |
| 291 | m_coinbase_txns.push_back(b.vtx[0]); |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | CBlock TestChain100Setup::CreateBlock( |
| 296 | const std::vector<CMutableTransaction>& txns, |
no test coverage detected