committed by
Guillaume Ballet
parent
746392cfd2
commit
f1d440a437
@@ -269,3 +269,11 @@ func TopicToBloom(topic TopicType) []byte {
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// GetEnvelope retrieves an envelope from the message queue by its hash.
|
||||
// It returns nil if the envelope can not be found.
|
||||
func (w *Whisper) GetEnvelope(hash common.Hash) *Envelope {
|
||||
w.poolMu.RLock()
|
||||
defer w.poolMu.RUnlock()
|
||||
return w.envelopes[hash]
|
||||
}
|
||||
|
Reference in New Issue
Block a user