The timestamp in the block accurate enough to be used for determining this so how is "when the re-organization occurs" determined? Is it based on the local clock when the BitLotto node first learns of any reorg blocks?
If so, then the configuration of the BitLotto node can cause it to end up with different results than other nodes. To correct for this, specifically, the node should not allow any incoming connections and it should explicitly connect to certain well-connected nodes (e.g., DeepBit or other pool).
Do the Bitcoin.org client logs keep this information with a timestmap so it can be determined from the log when the blocks were received by the node?
The block timestamp is inserted by the miner creating the block. From the wiki:
A timestamp is accepted as valid if it is greater than the median timestamp of previous 11 blocks, and less than the network-adjusted time + 2 hours. "Network-adjusted time" is the median of the timestamps returned by all nodes connected to you.
The mega millions draw occurs no sooner that 3 UTC. It's sometimes 4 UTC.
The potential for something funny happening is VERY VERY rare but I guess it's possible even if VERY slim. I just have to think of a way of mentioning what will happen in that case. Even if it probably won't happen. I have thought about doing something like:
-the lucky block has to have a timestamp over 00 UTC *BUT* under 01 UTC
-this will guarantee that the block comes before the draw because of the "+2 hours" thing
-I could also mention that ANY reorg after 01 UTC (timestamp) changing the block will cause the lottery numbers to come from Friday
-the results will be official after 120 confirmations
All miners have very accurate clocks. The only person with a wrong time would probably be the attacker.
I think that would work and cover any extremely rare weird event. The only thing that will cause delays will be the odd times no blocks occur in that hour. It does happen sometimes and I guess in that case people would have to wait till Friday for the results.
The the attack would have to be no blocks for 3 hrs, wait for mega millions, create fake block with time over 2hrs wrong time and get it accepted by the network....
I think that is an impossible scenario?