Update chain/messagepool/messagepool.go
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
This commit is contained in:
parent
3477f7ce57
commit
41ea5a6f63
@ -768,7 +768,7 @@ func (mp *MessagePool) Add(ctx context.Context, m *types.SignedMessage) error {
|
|||||||
tmpCurTs := mp.curTs
|
tmpCurTs := mp.curTs
|
||||||
mp.curTsLk.RUnlock()
|
mp.curTsLk.RUnlock()
|
||||||
|
|
||||||
//ensures computations are cached without holding lack
|
//ensures computations are cached without holding lock
|
||||||
_, _ = mp.api.GetActorAfter(m.Message.From, tmpCurTs)
|
_, _ = mp.api.GetActorAfter(m.Message.From, tmpCurTs)
|
||||||
_, _ = mp.getStateNonce(ctx, m.Message.From, tmpCurTs)
|
_, _ = mp.getStateNonce(ctx, m.Message.From, tmpCurTs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user