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
|
return
|
||||||
case event := <-events:
|
case event := <-events:
|
||||||
if event.Type == transfer.EventNewTransfers && len(maxKnownBlocks) > 0 {
|
if event.Type == transfer.EventNewTransfers && len(maxKnownBlocks) > 0 && event.BlockNumber != nil {
|
||||||
newBlocks := false
|
newBlocks := false
|
||||||
for _, address := range event.Accounts {
|
for _, address := range event.Accounts {
|
||||||
if _, ok := maxKnownBlocks[address]; !ok {
|
if _, ok := maxKnownBlocks[address]; !ok {
|
||||||
|
|
Loading…
Reference in New Issue