Skip to content

Commit

Permalink
Add multinode to txm
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Oct 2, 2024
1 parent 83dced8 commit b5c3891
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/solana/txm/txm_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestTxm(t *testing.T) {

txm := NewTxm(id, func() (client.ReaderWriter, error) {
return mc, nil
}, cfg, mkey, lggr)
}, cfg, nil, mkey, lggr)
require.NoError(t, txm.Start(ctx))

// tracking prom metrics
Expand Down Expand Up @@ -718,7 +718,7 @@ func TestTxm_Enqueue(t *testing.T) {

txm := NewTxm("enqueue_test", func() (client.ReaderWriter, error) {
return mc, nil
}, cfg, mkey, lggr)
}, cfg, nil, mkey, lggr)

require.ErrorContains(t, txm.Enqueue("txmUnstarted", &solana.Transaction{}), "not started")
require.NoError(t, txm.Start(ctx))
Expand Down
2 changes: 1 addition & 1 deletion pkg/solana/txm/txm_race_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func TestTxm_SendWithRetry_Race(t *testing.T) {
}

// build minimal txm
txm := NewTxm("retry_race", getClient, cfg, ks, lggr)
txm := NewTxm("retry_race", getClient, cfg, nil, ks, lggr)
txm.fee = fee

_, _, _, err := txm.sendWithRetry(
Expand Down
2 changes: 1 addition & 1 deletion pkg/solana/txm/txm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestTxm_Integration(t *testing.T) {
getClient := func() (solanaClient.ReaderWriter, error) {
return client, nil
}
txm := txm.NewTxm("localnet", getClient, cfg, mkey, lggr)
txm := txm.NewTxm("localnet", getClient, cfg, nil, mkey, lggr)

// track initial balance
initBal, err := client.Balance(pubKey)
Expand Down

0 comments on commit b5c3891

Please sign in to comment.