Skip to content

Commit

Permalink
[#639] Disable filter removal in go-ethereum. (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrigin committed Feb 12, 2018
1 parent 365bc66 commit 9cc9982
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions _assets/patches/geth/0012-disable-filter-timeout.patch
Original file line number Diff line number Diff line change
@@ -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 (

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9cc9982

Please sign in to comment.