diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-23 22:43:41 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-23 22:43:41 +0800 |
commit | b2a225a52e45315f3ec90e11707fefa6059d13f5 (patch) | |
tree | 7019227fc4af5e39f88bcc58ddc455826df8d569 /rpc/util.go | |
parent | 20aa6dde067a0c8d28fdafd43e41f996f014e8b0 (diff) | |
download | dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.tar dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.tar.gz dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.tar.bz2 dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.tar.lz dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.tar.xz dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.tar.zst dexon-b2a225a52e45315f3ec90e11707fefa6059d13f5.zip |
Properly uninstall filters. Mining issue fixed #closes #365
* Added an additional tx state which is used to get the current nonce
* Refresh transient state each time a new canonical block is found
* Properly uninstall filters. Fixes a possible crash in RPC
Diffstat (limited to 'rpc/util.go')
-rw-r--r-- | rpc/util.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/util.go b/rpc/util.go index 1939b3474..00a418783 100644 --- a/rpc/util.go +++ b/rpc/util.go @@ -108,6 +108,7 @@ func toLogs(logs state.Logs) (ls []Log) { type whisperFilter struct { messages []xeth.WhisperMessage timeout time.Time + id int } func (w *whisperFilter) add(msgs ...xeth.WhisperMessage) { @@ -123,6 +124,7 @@ func (w *whisperFilter) get() []xeth.WhisperMessage { type logFilter struct { logs state.Logs timeout time.Time + id int } func (l *logFilter) add(logs ...state.Log) { |