use supplied tipset when looking up actor state

This commit is contained in:
vyzo 2020-08-06 17:07:37 +03:00
parent 30ec4e7524
commit 61d027db2a

View File

@ -277,7 +277,7 @@ func (mp *MessagePool) createMessageChains(actor address.Address, mset map[uint6
// cannot exceed the block limit; drop all messages that exceed the limit
// - the total gasReward cannot exceed the actor's balance; drop all messages that exceed
// the balance
a, _ := mp.api.StateGetActor(actor, nil)
a, _ := mp.api.StateGetActor(actor, ts)
curNonce := a.Nonce
balance := a.Balance.Int
gasLimit := int64(0)