Pages:
Author

Topic: error: txNew does name not a type (.1 BTC reward for solution) - page 2. (Read 2052 times)

hero member
Activity: 686
Merit: 504
always the student, never the master.
i have no farking idea man
legendary
Activity: 980
Merit: 1000
As a proof of concept, I'm trying to make an altered client that makes the genesis block spendable. I know this can be done with addUnchecked by sending it the TX and the block hash. I've started by trying to recreate the genesis block TX by pulling this code from InitBlockIndex:

Code:
       // Genesis block
        const char* pszTimestamp = "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks";
        CTransaction txNew;
        txNew.vin.resize(1);
        txNew.vout.resize(1);
        txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
        txNew.vout[0].nValue = 50 * COIN;
        txNew.vout[0].scriptPubKey = CScript() << ParseHex("04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3 8c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f") << OP_CHECKSIG;

But it doesn't work. Thoughts?
Pages:
Jump to: