| 306 | } |
| 307 | |
| 308 | CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey) |
| 309 | { |
| 310 | CPubKey pubkey; |
| 311 | if (!reservekey.GetReservedKey(pubkey)) |
| 312 | return NULL; |
| 313 | |
| 314 | CScript scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; |
| 315 | return CreateNewBlock(scriptPubKey); |
| 316 | } |
| 317 | |
| 318 | static bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) |
| 319 | { |
no test coverage detected