We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c933482 commit 58c6abeCopy full SHA for 58c6abe
crates/polygon/src/validation.rs
@@ -48,12 +48,12 @@ pub fn validate_bor_header(
48
}
49
50
// Reject blocks too far in the future (Bor bor.go:422-461)
51
- // Allow 1 second of clock drift.
+ // Bor uses allowedFutureBlockTimeSeconds = 15 by default.
52
let now = std::time::SystemTime::now()
53
.duration_since(std::time::UNIX_EPOCH)
54
.unwrap_or_default()
55
.as_secs();
56
- if header.timestamp > now + 1 {
+ if header.timestamp > now + 15 {
57
return Err(InvalidBlockHeaderError::PolygonFutureBlock {
58
header_time: header.timestamp,
59
now,
0 commit comments