| 249 | } |
| 250 | |
| 251 | std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlockWithKey(CReserveKey& reservekey, bool fMineWitnessTx, bool fProofOfStake, int64_t* pTotalFees, int32_t txProofTime, int32_t nTimeLimit) |
| 252 | { |
| 253 | CPubKey pubkey; |
| 254 | if (!reservekey.GetReservedKey(pubkey, true)) |
| 255 | return NULL; |
| 256 | |
| 257 | CScript scriptPubKey = CScript() << ToByteVector(pubkey) << OP_CHECKSIG; |
| 258 | return CreateNewBlock(scriptPubKey, fMineWitnessTx, fProofOfStake, pTotalFees, txProofTime, nTimeLimit); |
| 259 | } |
| 260 | |
| 261 | std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewStake(bool fMineWitnessTx, bool fProofOfStake, int64_t* pTotalFees, int32_t txProofTime, int32_t nTimeLimit) |
| 262 | { |
no test coverage detected