mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-283] Fixed a crash in notifyChainChanged. (#372)
This commit is contained in:
parent
1a569c7bd7
commit
36d5ac189f
@ -559,7 +559,7 @@ func (m *wsNotificationManager) notifyChainChanged(clients map[chan struct{}]*ws
|
||||
removedChainBlockHashes []*daghash.Hash, addedChainBlockHashes []*daghash.Hash) {
|
||||
|
||||
// Collect removed chain hashes.
|
||||
removedChainHashes := make([]daghash.Hash, 0, len(removedChainBlockHashes))
|
||||
removedChainHashes := make([]daghash.Hash, len(removedChainBlockHashes))
|
||||
for i, hash := range removedChainBlockHashes {
|
||||
removedChainHashes[i] = *hash
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user