Skip to content

Commit

Permalink
Fix duplicate nonce test
Browse files Browse the repository at this point in the history
StateGetActor now gets the actor at the tipset parent state.
  • Loading branch information
Stebalien committed Oct 26, 2020
1 parent 7aba2ed commit 3188820
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions chain/sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,14 @@ func TestDuplicateNonce(t *testing.T) {

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
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{
To: rcvr,
From: tu.g.Banker(),
Expand Down

0 comments on commit 3188820

Please sign in to comment.