RPC getmemorypool improvements: coinbase flags, min timestamp #759

pull forrestv wants to merge 2 commits into bitcoin:master from forrestv:getmemorypool_blockflagstime changing 3 files +13 −6
  1. forrestv commented at 5:03 AM on January 15, 2012: contributor

    Adds coinbaseflags, mintime, and curtime to output of getmemorypool.

    Since users of getmemorypool generate coinbase transactions themselves, they need bitcoind to indicate what should be included in the coinbase data.

    Mintime and curtime are useful for generating work by changing the timestamp. Without them, P2Pool can only increment the timestamp. With the knowledge of the minimum allowable timestamp, work can be generated symmetrically around the current timestamp, reducing future bias.

    Generation (without using getmemorypool) tested on testnet: http://blockexplorer.com/testnet/block/00000000014be554b29d072c2c079f8e120715d2799899cc9774a8dd02c78345

  2. Separated COINBASE_FLAGS out into main.h and made RPC getmemorypool return it 52a3d2635c
  3. Added mintime and curtime to RPC getmemorypool ab84512258
  4. sipa commented at 3:12 PM on January 15, 2012: member

    ACK

  5. gmaxwell commented at 10:37 PM on January 15, 2012: contributor

    I reviewed this, and it works for me. ACK.

  6. gavinandresen commented at 7:34 PM on January 18, 2012: contributor

    ACK

  7. luke-jr commented at 7:13 PM on January 19, 2012: member

    This needs to be rebased on top of coinbaser, as it duplicates some functionality.

  8. gavinandresen merged this on Jan 19, 2012
  9. gavinandresen closed this on Jan 19, 2012

  10. sipa referenced this in commit 6312e5152c on Jul 28, 2020
  11. sipa referenced this in commit 85de7c1ced on Aug 6, 2020
  12. sipa referenced this in commit 94dc6bcc30 on Aug 7, 2020
  13. sipa referenced this in commit 06f963c894 on Aug 10, 2020
  14. sipa referenced this in commit 5cb59db575 on Aug 11, 2020
  15. sipa referenced this in commit a951950cf7 on Aug 16, 2020
  16. sipa referenced this in commit 0a0db15fc7 on Aug 16, 2020
  17. sipa referenced this in commit 5d5bef0862 on Aug 28, 2020
  18. sipa referenced this in commit 62da1445ac on Sep 4, 2020
  19. sipa referenced this in commit f0c6824af2 on Sep 5, 2020
  20. sipa referenced this in commit b9c1a76481 on Sep 11, 2020
  21. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me