mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
Add comment
This commit is contained in:
parent
265d76a393
commit
387fbf0451
@ -255,6 +255,7 @@ func (s *server) updateUTXOSet(entries []*appmessage.UTXOsByAddressesEntry, memp
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No need to lock for reading since the only writer of this set is on `syncLoop` on the same goroutine.
|
||||||
address, ok := s.addressSet[entry.Address]
|
address, ok := s.addressSet[entry.Address]
|
||||||
if !ok {
|
if !ok {
|
||||||
return errors.Errorf("Got result from address %s even though it wasn't requested", entry.Address)
|
return errors.Errorf("Got result from address %s even though it wasn't requested", entry.Address)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user