bitpay / bitcoin

Bitcore Bitcoin build with address indexes
https://bitcore.io/bitcoin
MIT License
61 stars 40 forks source link

Idea: Timestamp index in block order #26

Closed braydonf closed 8 years ago

braydonf commented 8 years ago

Keep a timestamp index that will map a timestamp to a blockhash in a way that will keep the block order, and iterating by timestamp would not yield out-of-order blocks.

The timestamp could be defined as the actual block's timestamp or would assume the previous block's timestamp (with an additional second) if the block's timestamp is not greater than the previous timestamp.

braydonf commented 8 years ago

This was added in: https://github.com/bitpay/bitcoin/pull/29