[#639] Disable filter removal in `go-ethereum`. (#650)

This commit is contained in:
Igor Mandrigin 2018-02-12 13:02:25 +01:00 committed by GitHub
parent 365bc662a2
commit 9cc9982a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 2 deletions

2
Gopkg.lock generated
View File

@ -109,7 +109,7 @@
"whisper/notifications",
"whisper/whisperv5"
]
revision = "6b396471b29c6fdf9f05eb85dd0eaf8544ede3d9"
revision = "6bba5c70ba424f5efb448536ae3d000f96e7cc9e"
source = "https://github.com/status-im/go-ethereum.git"
[[projects]]

View File

@ -0,0 +1,16 @@
diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go
index e3c2f4a97..96d895fdc 100644
--- a/whisper/whisperv5/api.go
+++ b/whisper/whisperv5/api.go
@@ -33,7 +33,10 @@ import (
)
const (
- filterTimeout = 300 // filters are considered timeout out after filterTimeout seconds
+ // HACK: make the filter essentially never timeout (1 year of timeout time)
+ // It's a hack, but that simplifies rebasing process, because the patch consists
+ // only of 1 LoC change (excluding this comment).
+ filterTimeout = 525600 * 60 // filters are considered timeout out after filterTimeout seconds
)
var (

View File

@ -33,7 +33,10 @@ import (
)
const (
filterTimeout = 300 // filters are considered timeout out after filterTimeout seconds
// HACK: make the filter essentially never timeout (1 year of timeout time)
// It's a hack, but that simplifies rebasing process, because the patch consists
// only of 1 LoC change (excluding this comment).
filterTimeout = 525600 * 60 // filters are considered timeout out after filterTimeout seconds
)
var (