Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. // Special case for the genesis block, skipping connection of its transactions
  2. // (its coinbase is unspendable)
  3. if (block.GetHash() == chainparams.GetConsensus().hashGenesisBlock) {
  4. if (!fJustCheck)
  5. view.SetBestBlock(pindex->GetBlockHash());
  6. // return true; <- comment this line out
  7. }
  8.  
  9. if (block.GetHash() != chainparams.GetConsensus().hashGenesisBlock) {
  10. assert(pindex->pprev);
  11. }
  12.  
  13. if (block.GetHash() != chainparams.GetConsensus().hashGenesisBlock)
  14. {
  15. if (!WriteUndoDataForBlock(blockundo, state, pindex, chainparams))
  16. return false;
  17. }
  18.  
  19. {
  20. "txid" : "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
  21. "version" : 1,
  22. "locktime" : 0,
  23. "vin" : [
  24. {
  25. "coinbase" : "04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73",
  26. "sequence" : 4294967295
  27. }
  28. ],
  29. "vout" : [
  30. {
  31. "value" : 50.00000000,
  32. "n" : 0,
  33. "scriptPubKey" : {
  34. "asm" : "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f OP_CHECKSIG",
  35. "hex" : "4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac",
  36. "reqSigs" : 1,
  37. "type" : "pubkey",
  38. "addresses" : [
  39. "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
  40. ]
  41. }
  42. }
  43. ]
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement