Author

Topic: Block timestamp must not be more than two hours in the future. What src file? (Read 1101 times)

member
Activity: 119
Merit: 112
_copy_improve_
Thanks a lot  Roll Eyes

Looked to other places and skipped the obvious!
legendary
Activity: 4536
Merit: 3188
Vile Vixen and Miss Bitcointalk 2021-2023
a) is in the CheckBlockHeader() function (was CheckBlock() in older versions).
b) is in the AcceptBlockHeader() function (AcceptBlock() in older versions).
Both are defined in main.cpp.
member
Activity: 119
Merit: 112
_copy_improve_

Could some one help me locate where the following protocol rules are enforced in Bitcoin Core src.
What files should i read?

a) Block timestamp must not be more than two hours in the future.
b) Reject if timestamp is the median time of the last 11 blocks or before

PS. Perhaps the answer should be RTFM but I may miss something important.

Thanks in advance.
Jump to: