altcoin improvement – Iam attempting to clone Peercoin, however I get the next error when attempting to premine the cash utilizing generate to handle

0
83


I’m attempting to clone the peercoin code. I’ve created genesis block appropriately. However when I attempt to pre-mine the cash utilizing generatetoaddress which makes use of POW, I get the next error
RROR: GetLastStakeModifier: no era at genesis block

I appeared on the code and evidently when it calls “GetLastStakeModifier” it can’t discover a stake modifier within the genesis block since I solely have the genesis block.

Ought to I generate a stakemodifier to genesis block? How to try this?
After I run getblock I get the next, which seems to be prefer it have already got modifierchecksum.

{
“hash”: “00000000595887d63ac6a42cc43f86b8d8b970a24e712a08c96e2b6028b36e7e”,
“confirmations”: 1,
“strippedsize”: 222,
“measurement”: 222,
“weight”: 888,
“peak”: 0,
“model”: 1,
“versionHex”: “00000001”,
“merkleroot”: “73816201d0ec55dd2c11d16eaf6da93a6444a4f9a415df14cad9f605e8ac8ea7”,
“tx”: [
“73816201d0ec55dd2c11d16eaf6da93a6444a4f9a415df14cad9f605e8ac8ea7”
],
“time”: 1670910484,
“mediantime”: 1670910484,
“nonce”: 2250407151,
“bits”: “1d00ffff”,
“issue”: 1,
“mint”: 0.000000,
“chainwork”: “0000000000000000000000000000000000000000000000000000000000000001”,
“nTx”: 1,
“flags”: “proof-of-work”,
“proofhash”: “00000000595887d63ac6a42cc43f86b8d8b970a24e712a08c96e2b6028b36e7e”,
“entropybit”: 0,
“modifier”: “0000000000000000”,
“modifierchecksum”: “e0f05322”,
“blocksignature”: “”
}

thanks
Mina

LEAVE A REPLY

Please enter your comment!
Please enter your name here