mirror of
https://github.com/status-im/status-go.git
synced 2025-01-30 16:38:21 +00:00
Fix/wallet watcher panic (#3940)
* fix wallet watcher panic * bump version
This commit is contained in:
parent
d900974519
commit
22cd90e878
@ -180,7 +180,7 @@ func (s *Service) StartWalletWatcher() {
|
||||
}
|
||||
return
|
||||
case event := <-events:
|
||||
if event.Type == transfer.EventNewTransfers && len(maxKnownBlocks) > 0 {
|
||||
if event.Type == transfer.EventNewTransfers && len(maxKnownBlocks) > 0 && event.BlockNumber != nil {
|
||||
newBlocks := false
|
||||
for _, address := range event.Accounts {
|
||||
if _, ok := maxKnownBlocks[address]; !ok {
|
||||
|
Loading…
x
Reference in New Issue
Block a user