Update chain/messagepool/messagepool.go

Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
This commit is contained in:
Mikers 2023-03-29 05:44:25 -10:00 committed by GitHub
parent 3477f7ce57
commit 41ea5a6f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -768,7 +768,7 @@ func (mp *MessagePool) Add(ctx context.Context, m *types.SignedMessage) error {
tmpCurTs := mp.curTs
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.getStateNonce(ctx, m.Message.From, tmpCurTs)