Fix duplicate nonce test
StateGetActor now gets the actor at the tipset parent state.
This commit is contained in:
parent
e164dbb953
commit
a47b063a24
@ -573,11 +573,14 @@ func TestDuplicateNonce(t *testing.T) {
|
|||||||
|
|
||||||
base := tu.g.CurTipset
|
base := tu.g.CurTipset
|
||||||
|
|
||||||
|
// Get the banker from computed tipset state, not the parent.
|
||||||
|
st, _, err := tu.g.StateManager().TipSetState(context.TODO(), base.TipSet())
|
||||||
|
require.NoError(t, err)
|
||||||
|
ba, err := tu.g.StateManager().LoadActorRaw(context.TODO(), tu.g.Banker(), st)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
// Produce a message from the banker to the rcvr
|
// Produce a message from the banker to the rcvr
|
||||||
makeMsg := func(rcvr address.Address) *types.SignedMessage {
|
makeMsg := func(rcvr address.Address) *types.SignedMessage {
|
||||||
|
|
||||||
ba, err := tu.nds[0].StateGetActor(context.TODO(), tu.g.Banker(), base.TipSet().Key())
|
|
||||||
require.NoError(t, err)
|
|
||||||
msg := types.Message{
|
msg := types.Message{
|
||||||
To: rcvr,
|
To: rcvr,
|
||||||
From: tu.g.Banker(),
|
From: tu.g.Banker(),
|
||||||
|
Loading…
Reference in New Issue
Block a user